for(int i =0; i<radGridView.rows.count;i++)
//change row color in radgridview
1 Answer, 1 is accepted
answered on 02 Apr 2014, 08:39 AM
Thank you for contacting us.
I suppose that you want to change the BackColor property of a row in RadGridView. If this is what you want to achieve, you can subscribe to the RowFormatting event and change the color. Please take a look at the following code example:
In order to prevent applying the formatting to other columns' cell elements all customization should be reset for the rest of the cell elements when use events like ViewCellFormatting, ViewRowFormatting, CellFormatting, RowFormatting.
In our documentation there are articles which demonstrate how you can customize your RadGridView by using the formatting events. You can refer to articles Formatting Rows and Formatting Cells.
I hope this will help. Do not hesitate to write back with further questions.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.