We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

SfDataGrid InputBindings and Triggers

I am using SfDataGrid in read-only mode. 
I read this article and download sample but does not work for me.

My community license is Essential Studio Enterprise Edition version v14.4.0.15.
I want to add InputBindings ("Enter") for run "Edit" command.

1- How can i use input bindings or triggers for "Enter" key in sfDataGrid?
2- By default, when i select row in sfDataGrid, the cell column is selected also with border and highlighted. How can i select row without selected cell?

4 Replies

MS MsExclusive March 12, 2017 08:16 AM UTC

This problem solved by set NavigationMode="Row"

MK Muthukumar Kalyanasundaram Syncfusion Team March 13, 2017 05:25 AM UTC

Hi MsExclusive,   
Thank you for contacting Syncfusion support.   
We are glad that you have fixed your issue. Please let us know if you need any other assistance.   
Muthukumar K 

MS MsExclusive March 13, 2017 08:51 AM UTC

Hi again,
How can i use EventTrigger for sfDataGrid to prevent "Enter" key to focus next row?
One solution is handle Enter key behavior by overriding ProcessKeyDown method in GridSelectionController classs. 
But i want to use EventTrigger.
Any idea?

MK Muthukumar Kalyanasundaram Syncfusion Team March 14, 2017 02:29 PM UTC

Hi MsExclusive, 
Thanks for the update. 
We have analyzed your query. We suggest you to use GridSelectionController by overriding the  ProcessKeyDown method instead of using EventTrigger. Because the selection controller is processed before event triggered so the control is handled by selection controller itself. 
Please let us know if you have any query. 
Muthukumar K  

Live Chat Icon For mobile
Up arrow icon