


The Data Grid must handle these property changes and move the item to the appropriate group. The IsInWatchlist property specifies whether a symbol is in a watchlist. A symbol is moved from one group to another via a row click event. All symbols found by the typed ticker fragment are divided into two groups: symbols that are in the watchlist, and symbols that are not in the watchlist. It allows users to populate watchlists with desired stock symbols. The Search Symbol page is invoked from the app’s Watchlist. Update Row on Data Object Change within the Search Page The code below uses our PickerColumn to provide values against which the grid will group rows and our TemplateColumn to display row content: 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.
