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)