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.
Unfortunately, activation email could not send to your email. Please try again.

BackgroundImage to Cells

Thread ID:





26133 Mar 15,2005 09:03 AM Mar 15,2005 09:31 AM Windows Forms 1
Tags: GridControl
Asked On March 15, 2005 09:03 AM

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.

Administrator [Syncfusion]
Replied On March 15, 2005 09:31 AM

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.