Hi,
Is there an easy way to determine which rows in a grid band are selected?
Currently I do something like this -
foreach (UltraGridRow aRow in this.DisplayLayout.Bands[bandCnt].GetRowEnumerator(GridRowType.DataRow)) { if (aRow.Selected && !aRow.IsGroupByRow) {
But that seems inefficient since I will have to enumerate over every row in the band.
Thanks
foreach (UltraGridRow row in this.ultraGrid1.Selected.Rows) { }
foreach (UltraGridRow row in this.ultraGrid1.Selected.Rows)
{
}