I have a GridView with MultiSelect enabled. The standard behavior is when the user selects a row this changes the row's color and all selected rows maintain a diferent color. I want to mimic this behavior with a GridViewCheckBoxColumn.
My GridView has a GridViewCheckBoxColumn and when it's checked, I want to change the row color. If it's unchecked, return it back to normal. Currently I'm using the ValueChanged event to capture the event of the checking and unchecking.
private
void
radGridViewProducts_ValueChanged(
object
sender, EventArgs e)
{
if
(
this
.radGridViewProducts.ActiveEditor
is
RadCheckBoxEditor)
{
this
.radGridViewProducts.Rows[
this
.radGridViewProducts.CurrentCell.RowIndex].IsSelected =
true
;
}
}
The code above does not change the row color. How can I acheive this?
Thank you.