How to select the row (for example the row in the datagrid open) and set its background color for example in red C #?
I have the following code in my program:
gameDataGrid.RowBackground = New SolidColorBrush (Colors.Red);
The output is shown below, the background is not red ....
If you want to change several rows based on some properties, then wire the LoadRow event and change the style of DataGridRow in the event handler.
Comments
Post a Comment