Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# How to change row background based on RowState when underlying source is DataTable in wpf datagrid?
This example illustrates how to change row background based on RowState when underlying source is DataTable in wpf datagrid
# How to change row background based on RowState when underlying source is DataTable in WPF DataGrid (SfDataGrid)?

This example illustrates how to change row background based on RowState when underlying source is DataTable in [WPF DataGrid](https://www.syncfusion.com/wpf-ui-controls/datagrid) (SfDataGrid).

You can change the row background based on [RowState.Modified](https://docs.microsoft.com/es-es/dotnet/api/system.data.datarowstate?view=netframework-4.7.2#fields) when binding [WPF DataGrid](https://www.syncfusion.com/wpf-ui-controls/datagrid) (SfDataGrid) to [DataTable](https://docs.microsoft.com/en-us/dotnet/api/system.data.datatable?view=netframework-4.7.2) using style for initial loading. You can also change the background for runtime changes using the [DataTable.RowChanged](https://docs.microsoft.com/ru-ru/dotnet/api/system.data.datatable.rowchanged?view=netframework-4.7.2) event.