Hi all,
I have a wingrid in my application where I have set the CellClickAction as RowSelect. When i set the SelectTypeRow as SelectType.ExtendedAutoDrag or SelectType.Extended i am able to select multiple rows by dragging the mouse, but my application should allow multiple row selection only using the control key.
Is there any way by which i can disable selection of rows by dragging the mouse?
Thanks in advance.
Prenil.
Hi Prenil,
I don't think this is possible. Using the CTRL key for range selection is completely non-standard for a Windows application. CTRL is usually used for non-contiguous selected.
I think you can stop the range selection by handling the SelectionDrag event of the grid and cancelling it. But I don't see a way to get it to work again when the CTRL key is down.
Hi,
I need to stop highlighting and select different regions. How to do that i.e. If a region is seleted that user should not be able to select another region.
Thanks Mike..
Cancelling the SelectionDrag event works perfectly for me. I use the shift key for range selection and the ctrl key for non-contiguous selection and i wanted to disable range selection using the mouse drag.