Select multiple Rows without pressing Control Key

后端 未结 6 1714
日久生厌
日久生厌 2021-01-19 07:36

I have a gridview where I can select multiple rows by pressing a control key. Is it possible to achieve the same without pressing a control key.

6条回答
  •  借酒劲吻你
    2021-01-19 07:59

    You need to subscribe to mouse click event and select the row programmatically by setting Selected property to true.

    Keep in mind that ff the row is already selected you need to set it to false so that the user is able to deselect the row.

提交回复
热议问题