Articles in this section
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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied