Hallo,
Is there any anything like the Rows[index].Selected-Property for bands/groups? Purpose is, that our customers only want to print the selected groups, but I don't know how to determine if a band is selected..
Greets, Nils
Hi Nils,
I'm not sure what you mean by a selected band or group. A group or a band cannot be selected - or at least the grid has no concept of selecting an entire band or group. Do you mean you want to detect if all of the rows in a group are selected? You would have to loop through them all and check the Selected property on each row. The grid.Rows.GetRowsEnumerator would probably be helpful there, as it can return all the rows of a particular level or band.
Or do you mean you only want to print the rows in the same group or band as the ActiveRow in the grid? Active is not the same as selected. Again, the grid does not have a concept of an Active band or group, but it does have an ActiveRow.Band and you could check the ActiveRow.Parent and walk up the parent chain to find the GroupbyRow that contains that row.