The new feature for putting check boxes in the header of a column would be great, but I cannot get it to work. I am handling the AfterHeaderCheckStateChanged event and I find that the Rows collection is always null. I also find that the cell values have not yet been updated by the time I get the event, making it difficult to figure out what state things are in. Am I doing something wrong, or is this just broken? The grid is bound to an ultra data source. Also, I do not get before cell update or after cell update events when I check the header checkbox.
I'd like to provide one more piece of information regarding this. The Rows property on the event args will be null if the HeaderCheckBoxSynchronization is set to Band. If you want to retrieve the rows for the band, you can use the GetRowEnumerator() method off of the band.
If you are using a HeaderCheckBoxSynchronization other than Band and the Rows property is still empty, we're going to have to get a little more information about your setup to reproduce the issue, as this would be a bug.
Thanks,
Chris
Confirmed, the Rows collection is not null when using
HeaderCheckBoxSynchronization.RowsCollection
The values are "behind" however--multiple clicks result in getting true when all boxes are empty and false when all boxes are checked, and the first event shows the original state of everything. It just looks like the event is being raised too soon.
Thanks, Dave