How to change the BackColor of a single row
9 Dec 2019 / 1 minute to read
GridControl.RowStyles collection contains GridStyleInfo objects that provide row style settings for the GridControl. Changing the properties on a particular RowStyle will affect all the cells in that row (unless a particular cell has a more specific style setting, like a CellStyle, applied).
//Sets the BackColor of the 3rd row.
gridControl1.RowStyles[3].BackColor = Color.Red;
'Sets the BackColor of the 3rd row.
GridControl1.RowStyles(3).BackColor = Color.Red
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page