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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfDataGrid InputBindings and Triggers

Thread ID:





129317 Mar 12,2017 06:09 AM UTC Mar 14,2017 02:29 PM UTC WPF 4
Tags: SfDataGrid
Asked On March 12, 2017 06:09 AM UTC

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?

Replied On March 12, 2017 08:16 AM UTC

This problem solved by set NavigationMode="Row"

Muthukumar Kalyanasundaram [Syncfusion]
Replied On 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 

Replied On 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?

Muthukumar Kalyanasundaram [Syncfusion]
Replied On 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  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon