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
30
UltraGrid Multi-Selection is not happening with shift key
posted

I have a  UltraGrid with checkbox. I need to select multiple rows. Its working when I'm select the row manually.

but when I'm setting focus to the row by code behind, the Shift key selection is not working.

 Here I have attached sample,

after reloading the data, I need to set the focus to the row which is last selected. so I am navigating to the grid by

            grid.Rows[_currentRowIndex].Activate();

            grid.Rows[_currentRowIndex].Selected = true;                                               

after this line, when I'm press shift key to select, its not selecting multiple rows. its selecting the single row.

Eg : when I'm in the 6th row, after reloading the data, the focus should be in the 6th row. So I'm navigating to the 6th row by above 2 lines. after that when I'm selecting other row with shift key, it should select multiple rows. But its not happening.InfraSample.zip

Parents Reply Children
No Data