Articles in this section

How to Change Grid Web Forms BackColor of row?

 

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)
Access denied
Access denied