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
dnm240 said: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.
Yes, as I posted above, it appears that you are correct about this and it needs to be fixed. You should be hearing from Developer Support about this issue shortly, if you have no already.
I'm experiencing this same problem.. is a fix available?
A partial fix is available in 9.1.20091.2039 (a hotfix recently released) which should be available in the downloads section. The checkboxes update correctly. The remaining issue is that the initial state of the header checkbox is wrong, either always checked or always in indeterminate state, depending on whether you are applying the checkbox to the band or the entire grid.