Hi, All.
I hold CTRL key and click on a row. Aftter this I have found that collection of selected grid rows do not contain the row I clicked on( with holding CTRL key).
But if I do the same with holding SHIFT key that collection of selected grid rows contains the row I clicked on.
Note:
- I mean the case when we are selecting only one row.
- I use grid.DisplayLayout.Override.CellClickAction = CellClickAction.RowSelect;
What is the reason of that? I need to add such row to grid.Selected.Rows at clicking on row with holding CTRL key.
Thanks in advance.
Alex.
Hi Alex,
I tested this out with a new grid on a form and it works fine for me. So if it's not working for you, then it must be either an old bug in the grid or something in your code. Without more information, I'm afraid I really couldn't guess why it's happening.
Mike, thanks for you quick answering my question.
We are using Infragistics 8.1 with HotFix_2033.
I have attached the small test project that demonstrates what I said about.
1. Select any one row without holding CTRL key and click on the button that is at the bottom of the form.
Result: 1 row selected.
2 .Select any one row with holding CTRL key and click on the button.
Result : 0 row selected.
3. Select any one row with holding SHIFT key and click on the button.
Result : 1 row selected.
I could not understand what is the difference between CTRL and SHIFT keys in this case? And how to achive that selected row(with CTRL) will be added to Selected.Rows collection ?