This is for version 9.1 Windows Forms. I have the following structure in my UltraDataSource that contains 3 sibling children bands. Also, the first column in all bands contains a checkbox (including headers):
HEADER 0
Row 0 (Band 0)
Row 1 (Band 0)
Header 1
Row 0 (Band 1)
Row 1 (Band 1)
Header 2
Row 0 (Band 2)
Row 1 (Band 2)
Header 3
Row 0 (Band 3)
Row 1 (Band 3)
I have 2 questions
:
1) How do I have the checkbox show a square in it instead of a dull checkbox for CheckState Indeterminate?
2) How do I get the checkbox in Row 1 (Band 0) to show the correct CheckState based on the collective settings of Header 1, Header 2, and Header 3?
+ row2 (band 0)
Hi Mike
Regarding the tricheckbox vs checkox, the column header rendering is based on what type of checkbox is selected for the column. Therefore, I'll need to add code to see the value of the checkbox and if it is indeterminent, for it to false. This will resolve my issue. However, it would be a plus to be able to have separate settings for the column header checkbox to be tristate while the details are dualstate.
Thanks for your help
No -- it was set to Default. By setting it to True I got the square in a square representation. Thanks. That takes care of that issue. Now how do I only show True/False settings in the detail cell? Can I handle that in the CellChange event as well?
So you are loading a Preset into the grid? That might be turning off themes. Check the UseOsThemes property on the grid and see if it's set to False.
No -- but I am using the Office 2003 - Green Theme
This sounds like the difference between themed and non-themed drawing. Something must be turning off themes on your grid in your application and themes are turned on in the sample.
There are a number of ways to turn off themes. There's a UseOsThemes property on the grid. They can also be turned off via AppStylist. Are you loading an isl file in your application?