Welcome Guest Search | Active Topics | Sign In | Register

Background image in cells Options
ti-vam
Posted: Monday, June 4, 2012 6:02:18 PM
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
eo_support
Posted: Monday, June 4, 2012 10:16:19 PM
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.aspx

Thanks
ti-vam
Posted: Tuesday, June 5, 2012 3:44:39 PM
Rank: Member
Groups: Member

Joined: 6/4/2012
Posts: 13
Perfect solution, thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.