I have an UltraWinGrid, where I want multiple cell selection to be possible in only one way : iff the user holds down the CTRL/SHIFT key and selects by clicking the cells.
I do not want users to be able to drag over a region to select multiple cells. How can this be accomplished? I am currently using v7.3. Thanks.
I have this line in my InitializeComponent() function
grid.DisplayLayout.Override.SelectTypeCell =
SelectType.ExtendedAutoDrag;
And this has disabled selection dragging. However , I do have drag n drop enabled , so my mouse down and mouse move events trigger that. The only way I can select multiple rows is by holding down shift or ctrl.
Hi Santosh,
I tried this out with both SelectTypeCell and SelectTypeRow and my suggestion above does not seem to work with either of them - much to my surprise.
Perhaps I was mistaken in my original post, but I cannot find any way to turn off selection dragging now.
You should Submit a feature request to Infragistics
Hi Mike,
This solution is not working for me in case of
SelectTypeRow = SelectType.ExtendedAutoDrag. I need to select multiple rows only when I having Ctrl or Shift key is pressed.
Regards,
Santosh
Thanks a lot! this is exactly what I wanted.
If you need the users to be able to select multiple cells using Shift+Click or Ctrl+Click, and you want to disabled just the dragging selection, you should use SelectType.ExtendedAutoDrag.
I guess that may seem a little weird that you need to choose AutoDrag in order to turn off dragging selection. But drag in this case refers to the ability to click on a cell and begin dragging the selected cells to some other control, not dragging the selection itself.
Of course, if you just want single selection and don't want the user to select multiple objects at all, you could just use SelectType.Single.