We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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

Administrator 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.
Live Chat Icon For mobile
Up arrow icon