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:

Created:

Updated:

Platform:

Replies:

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

Hi,
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?

MsExclusive
Replied On March 12, 2017 08:16 AM UTC

Hi,
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.   
 
Regards,  
Muthukumar K 
 


MsExclusive
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. 
 
Regards, 
Muthukumar K  


CONFIRMATION

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.

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

;