This example demonstrates how to highlight grid cells that were edited by a user.
This approach does not highlight cells if you change their values at the data source level. In this case, you can use the DataUpdateFormatCondition instead.
This example creates invisible unbound columns for each grid column. These Boolean unbound columns contain information on whether the corresponding grid column's cell was modified by a user. The CustomUnboundColumnData event populates unbound columns with data. The specified format condition highlights cells based on data in unbound columns.
- HighlightChangedCellBehavior.cs (VB: HighlightChangedCellBehavior.vb)
- ViewModel.cs (VB: ViewModel.vb)
- Window1.xaml (VB: Window1.xaml)
- WPF MVVM Behaviors - Create a Custom Attached Behavior
- WPF Data Grid - Apply Conditional Formatting in Code Behind
- WPF Data Grid - Create Unbound Columns
(you will be redirected to DevExpress.com to submit your response)