Hi,
I'm using the checkbox header class from here: http://www.telerik.com/support/kb/winforms/gridview/add-check-uncheck-all-check-box-in-the-header-cell.aspx
I need to handle users pressing Ctrl+enter to perform an action on all selected rows. The problem I am having is this: if you press Ctrl+enter after checking the check box in the header cell, the check box interprets this as a click and de-selects all the rows in the grid, and consequently no action is performed.
If I select another cell after checking the header check box, it works fine. I have tried selecting another cell programmatically, but the problem still occurs.
How can I prevent Ctrl+enter from triggering a click on the checkbox and still have it raise the Datagrid.KeyDown event?
Thanks,
Matt
I'm using the checkbox header class from here: http://www.telerik.com/support/kb/winforms/gridview/add-check-uncheck-all-check-box-in-the-header-cell.aspx
I need to handle users pressing Ctrl+enter to perform an action on all selected rows. The problem I am having is this: if you press Ctrl+enter after checking the check box in the header cell, the check box interprets this as a click and de-selects all the rows in the grid, and consequently no action is performed.
If I select another cell after checking the header check box, it works fine. I have tried selecting another cell programmatically, but the problem still occurs.
How can I prevent Ctrl+enter from triggering a click on the checkbox and still have it raise the Datagrid.KeyDown event?
Thanks,
Matt