Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
How do a determine the selected rows in a grid band?
posted

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