Bind to Collections Specified in the ViewModel
You can define collections of grid objects (for example, columns or summaries) in a ViewModel and assign them to the GridControl.
To generate grid objects from a ViewModel collection, specify the Source and Generator properties:
- Source
- Specifies a collection from which the GridControl generates objects.
- Generator
- Specifies a template used to generate grid objects.
Grid Objects | Source Property | Generator Template | Example |
---|---|---|---|
Columns | |||
Bands | |||
Total and Group Summaries | |||
Conditional Formatting Rules | TableView.FormatConditionGeneratorTemplate / TableView.FormatConditionGeneratorTemplateSelector | How to: Bind the Grid to a Collection of Conditional Formatting Rules | |
TreeListView.FormatConditionGeneratorTemplate / TreeListView.FormatConditionGeneratorTemplateSelector | |||
Selected Items | – |