BackgroundImage to Cells

i have problem with GridDataBoundGrid when i was put BackGroundImage to cells it not work this my sample code: Dim style As GridStyleInfo style = gDB(1, 1) gDB.Model.BanneredRanges.Add(GridRangeInfo.FromTlhw(1, 1, gDB.Model.RowCount, gDB.Model.ColCount)) style.BackgroundImage = GridBackImage style.BackgroundImageMode = GridBackgroundImageMode.StretchImage style = gDB(1, 1) this my problem can u help me solve it.

1 Reply

AD Administrator Syncfusion Team March 15, 2005 02:31 PM UTC

You cannot set style properties (other than CellValue\Text) on individual cells in a GridDataBoundGrid using an indexer. Instead, you need to provide cell specific style properties dynamically either using grid.Model.QueryCellInfo or grid.PrepareViewStyleInfo. Here is a KB discussing this process. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=83&catId=11

Loader.
Up arrow icon