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
525
Multiple row selection is kind of flaky
posted

The selectrowtype of my grid is "Extended select w/Auto drag". When I select a range of rows, for instance 5 rows using auto drag. And then select one more row which is not in the range say...I select a row after 2 rows using ctrl + click. 

When I programmatically see the number of selected rows...the count is 5. The last row I selected using ctrl+click is not part of that collection. 

Is this a bug?

-N

  • 469350
    Suggested Answer
    Offline posted

    Hi,

    If a row appears to be selected, but it not in the grid.Selected.Rows collection, then that row is probably the ActiveRow. By default, the ActiveRow appears just like a selected row.

    But I tried this out and it worked just fine for me.I clicked and dragging to select 5 rows, then Ctrl+clicked on another row and the grid.Selected.Rows.Count is 6.