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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

BackgroundImage to Cells

Thread ID:





26133 Mar 15,2005 02:03 PM UTC Mar 15,2005 02:31 PM UTC WinForms 1
Tags: GridControl
Asked On March 15, 2005 02:03 PM UTC

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 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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon