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.

Cell background change does not appear!

Thread ID:





8937 Nov 27,2003 01:11 AM Nov 27,2003 03:06 AM Windows Forms 2
Tags: GridControl
Koen Gullentops
Asked On November 27, 2003 01:11 AM

Hi, I try to change the background color of some cells in a databoundgrid by using the PrepareViewStyleInfo colIndex and rowIndex. It''s all working fine except the fact that I only see the cell color changing after I clicked on the grid. Maybe an important thing is that I switch between grids by setting them on invisible/visible -> does that has something to do with the PrepareViewStyleInfo? Thx, Koen

Administrator [Syncfusion]
Replied On November 27, 2003 02:52 AM

I tried to see this problem in this sample and could not. Do you see it? If so, what version of the grid and .NET Framework are you using? Normally to get PrepareViewStyleInfo changes ''to take'', you only need to force the particular cells to redraw somehow (maybe using grid.RefreshRange or grid.Refresh calls).

Administrator [Syncfusion]
Replied On November 27, 2003 03:06 AM

The sample I posted was done with a beta release of the grid. If you are not using the same release, you will get some compile errors in the designer generated code (new properties not in your version). Just comment them out to get things to compile with your release.


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.