I got a ultragrid with a column "A" that has a checkbox. How can I know if on all my rows this column is checked? Because there is a general checkbox that can be used to alter the state of column "A" in all my rows by using CheckAll() function, so it has to be a way to know if all my rows have this column checked, right?
Thanks in advance.
Btw: I tried to use GetHeaderCheckedState function but as I have group by rows I need to use the GetAllNonGroupByRows() function that returns an array of UltraGridRow, and the GetHeaderCheckedState function only receives a RowsCollection... Is there some way to convert UltraGridRow[] to RowsCollection?
PS:I don't know if this makes some kind of difference but this is a non-web application in C#.
Depending on your scenario, you may be able to use either the
BeforeHeaderCheckStateChanged
orAfterHeaderCheckStateChanged
event on theUltraGrid
. This would allow you to use theRowCollection
property on the incomingEventArgs
. For example:If this approach is not suitable for your scenario, you could use the parent rows. For example: