Rank: Member Groups: Member
Joined: 6/4/2012 Posts: 13
|
I want to assign different background images in the columns of a grid, but in each cell is the last assignment. I am using the following code c #:
GridInforme.Items[i].Cells[1].Column.CellStyle.BackgroundImage = "~/icons/EditNew.png";
Thanks Regards
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, Column.CellStyle applies to all cells in that column. If you wish each cell have different styles, you have to use cell based conditional formating. See here for more details: http://demo.essentialobjects.com/Demos/Grid/Features/Conditional%20Formatting%20-%20Cell%20Based/Demo.aspxThanks
|
Rank: Member Groups: Member
Joined: 6/4/2012 Posts: 13
|
Perfect solution, thanks
|