Disable default 'Enter' key press

Hi,

In my application I want to be able to select a row in a DataGrid and upon pressing the 'Enter' key on the keyboard it does something with the row data.

Currently when pressing the enter key, by default the DataGrid increments to the next row. Is there a way to disable this to allow a 'key down' event?

Thank you in advance


1 Reply

AP Abinesh Palanisamy Syncfusion Team October 15, 2024 09:06 AM UTC

Hi Alessandro,


It is clear that you need to select a row in the DataGrid when pressing the Enter key. We have achieved this using a CustomDataGridSelectionController and have shared a sample for your reference.


Regards,

Abinesh P


Attachment: SfDataGridSample_23b1d713.zip

Loader.
Up arrow icon