This example demonstrates how to define columns in a ViewModel and display them in the GridControl.
- MainWindow.xaml (VB: MainWindow.xaml)
- EmployeesViewModel.cs (VB: EmployeesViewModel.vb)
- EmployeesDataModel.cs (VB: EmployeesDataModel.vb)
- ColumnTemplateSelector.cs (VB: ColumnTemplateSelector.vb)
- How to: Bind the Grid to a Collection of Columns
- ColumnsSource
- ColumnGeneratorTemplate
- ColumnGeneratorTemplateSelector
- Bind the WPF Data Grid to a Collection of Summaries Specified in a ViewModel
- Bind the WPF Data Grid to a Collection of Bands Specified in ViewModel
- Bind the WPF Data Grid to Data
(you will be redirected to DevExpress.com to submit your response)