Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Create a class that extends MvxTableViewSource. This class will be responsible for defining the cells that will be displayed in the DataGrid.

  2. Override the CreateBindableView method to create the cells that will be displayed in the DataGrid.

  3. Override the GetCellIdentifier method to provide a unique identifier for each cell.

  4. Bind the DataGrid to a collection of ViewModel objects in your View.

  5. Set the DataSource property of the DataGrid to an instance of the MvxTableViewSource class you created in Step 1.

  6. Override the ViewModel class's format method to build column templates and initialize properties.

  7. Override ViewModel's OnCreateOptionsMenu method to generate the option menu.

  8. In the View, bind the IsBusy property of the ViewModel to a UI control to indicate data loading.

  9. In the View, bind the IsRefreshing property of the ViewModel to a UI control to enable the user to refresh data.

  10. Customize the look and feel of the DataGrid in the View by modifying the properties of its cells and rows.