Hi,
i hope you can help me. I got a strange Problem with some of the UltraGrids which i use.
I use some grids that works properly but 2-3 of them are strange. They got a black BackColor, but they all have the same settings. How can that be? I have checked the settings several times and i also delete the grid and make a new one, but the black background comes again. When i load data into the grid the black background is still there.
I have tried Me.grid.DisplayLayout.BackColor = Me.BackColor but it is still Black
I dont know where the problem is and i hope you have an idea where i can fix this strange appearance
Best Regards MO2k4
There are a couple of properties on the grid that might cause it so display differently based on the application style. One is the UseAppStylist. Another is the StyleLibraryName. And there's also a StyleSetName.
So you may want to check and see if any of these are set on any of the grids.
Also, you can apply an appearance to a resource from the isl. So try searching your code for StyleLibraryResourceName and see if that is used anywhere.
If it only happens at run-time, then perhaps something in your code is loading a Layout or a Preset into the grid.
If none of that helps, then I am at a loss to explain this. Can you duplicate this in a small sample project and post it here so I can take a look?You could make a copy of your project and then remove everything but one form.
No the settings of all grid are the same. I think i had to disable the UseAppStylist for the grids where it does not work and set the settings by code.
:(
If setting UseAppStylist made a difference, then clearly there is something in the application style that is causing this. Maybe the grid that are working already have their UseAppStylist property set to false.
Or perhaps the other grids have an image background that is displaying and covering the background color of the grid?
Hi Mike,
we dont use BeginUpdate. I tried several Settings with the ISL File. I tried to set Default StyleSet but no change. I tried to set the Default StyleSet for a working Grid, but nothing changed. It works fine. I cant imagine where the problem should be, when other grids are working fine with the same settings.
Thanks for the quick answer. When the grids are filled with a DataSource the Background is still black. But the Columns and Rows are shown right.
I have tried UseAppStylist = false for one grid then i is a white grid.
I will look for the BeginUpdate/EndUpdate and answer when i try.