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
160
Disable multiple row selection using mouse drag.
posted

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.

Parents
  • 469350
    Verified Answer
    Offline posted

    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.  

Reply Children