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?
ADAdministrator Syncfusion Team 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).
ADAdministrator Syncfusion Team 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.