This example uses data annotation attributes to customize data displayed in the GridControl. Set the DataControlBase.EnableSmartColumnsGeneration property to true
to configure grid columns based on applied attributes.
The following help topic lists supported attributes from the System.ComponentModel.DataAnnotations and DevExpress.Mvvm.DataAnnotations namespaces: Data Annotation Attributes.
- Products.cs (VB: Products.vb)
- MainWindow.xaml (VB: MainWindow.xaml)
- Apply Data Annotations
- DataControlBase.EnableSmartColumnsGeneration
- Data Annotation Attributes
- Attribute-Based Validation
- WPF Data Grid - Implement Attribute-Based Validation
- Format GridControl Columns Using Data Attributes and Fluent API
- Use DataAnnotation Attributes with DevExpress Controls
(you will be redirected to DevExpress.com to submit your response)