Category / Section
How to Change the BackColor of any row ?
1 min read
You can change the BackColor of any row in the QueryStyleCellInfo event as follows.
C#
if (e.TableCellIdentity.TableCellType == GridTableCellType.AnyCell)
{
e.Style.BackColor = Color.LightBlue;
}
VB
If e.TableCellIdentity.TableCellType = GridTableCellType.AnyCell Then
e.Style.BackColor = Color.LightBlue
End If