This is a migrated thread and some comments may be shown as answers.

grid row color will display altenative Color

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kannadasan
Top achievements
Rank 1
Kannadasan asked on 15 Sep 2010, 08:48 AM
Dear Team,
grid row color  i want to display altenative Color
in dynamic grid  how .give code programticaly.


with regards,
S.Kannadasan

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Sep 2010, 11:22 AM
Hello Kannadasan,

The following code snippet will help you to set different colors for alternative grid rows.

C#:
RadGrid1.MasterTableView.ItemStyle.BackColor = System.Drawing.Color.Brown;
RadGrid1.MasterTableView.AlternatingItemStyle.BackColor = System.Drawing.Color.Black;

Thanks,
Princy.
Tags
Grid
Asked by
Kannadasan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or