Hello,
I need help for changing WPF RadGridView Row Color Based on checkbox event.
Since Radgrdiview has more than 1000 records most of the record are invisible,
so due to virtualization below code is not working , row color changes when user scroll grdiview
this.userGridView.CurrentCell.ParentRow.Background = Brushes.Red;
RadGridView of the screen is created dynamically and in the grid one of column is containing checkboxes.
Based on requirements row color of checkboxes which are checked are green and unchecked check box row color are grayed.
If one of the unchecked check box is marked as check from user its row should change to "Red" and if again unchecked it should be "Dark Gray".
I need help to code dynamically from xaml.cs
Please find below code snippet which I have tried.
this.AddHandler(CheckBox.CheckedEvent,
new RoutedEventHandler(CheckBoxChecked));
private void
CheckBoxChecked(object sender, RoutedEventArgs e)
{
if
(userGridView.CurrentCell != null)
{
?????????????
}
}