How to select multiple rows without using control/shift keys.

Posted by: sagar-fp on 8 September 2017, 12:28 pm EST

  • Posted 8 September 2017, 12:28 pm EST

    hello,

    Is there a way wherein user should be able to select multiple rows without using the control/shift keys. In short, should be able to perform all the features available in the  ExtendedSelect operation mode but without using the control/shift keys. On mouse clicks should toggle the selection of that particular row.

    Thanks.
  • Replied 8 September 2017, 12:28 pm EST

    You would need to cancel the CellClick event by setting the e.Cancel parameter to FALSE

    Then you would need to call the appropriate method in the sheet's SelectionModel depending on your situation. Either call ExtendSelection in the cases you wish to extend the selection or AddSelection/RemoveSelection in the cases you wish to toggle a single row.

    Also, you would want to set the sheet's SelectionUnit to Row and SelectionPolicy to MultiRange.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels