This example demonstrates how to use our MVVM techniques in the WinUI Data Grid. The example shows how to do the following:
- Bind the Data Grid’s ItemsSource property to a collection in a view model.
- Specify grid columns in a view model and display them in the Data Grid.
- Access the Data Grid’s selected items from the view model.
- Convert the Data Grid’s events to commands in a view model.