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.
Unfortunately, activation email could not send to your email. Please try again.

SfDataGrid InputBindings and Triggers

Thread ID:





129317 Mar 12,2017 01:09 AM Mar 14,2017 10:29 AM WPF 4
Tags: SfDataGrid
Asked On March 12, 2017 01:09 AM

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 04:16 AM

This problem solved by set NavigationMode="Row"

Muthukumar Kalyanasundaram [Syncfusion]
Replied On March 13, 2017 01:25 AM

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 04:51 AM

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 10:29 AM

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.

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.