

The DataGridView offers various column types that we can use to display content and to group data.

A radio button signifies the current sort operation. Here are a couple of alternatives to Action Lists:Ī dropdown panel that displays available sort options within the page.

Though Action Sheets are fine, we believe better UI options exist for sort order/direction (when using our Xamarin Data Grid without column headers). Throw new Exception("Cannot handle the specified action.") NoneAction, ByTickerAction, ByTickerDescendingAction, ByProfitabilityAction, ByProfitabilityDescendingAction) ĬontentColumn.SortOrder = ColumnSortOrder.None ĬontentColumn.SortOrder = ColumnSortOrder.Ascending ĬontentColumn.SortOrder = ColumnSortOrder.Descending String action = await DisplayActionSheet( View Code Behind const string SortTitle = "Sort by" Ĭonst string ByTickerDescendingAction = "Ticker (Descending)" Ĭonst string ByProfitabilityAction = "Profitability" Ĭonst string ByProfitabilityDescendingAction = "Profitability (Descending)" In our app, we used the following code to modify sort order/direction via an Action Sheet: View Markup Our Xamarin Data Grid allows you to easily specify the desired sort column/sort order and its direction.
