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

[Enter] key to add line break

Thread ID:





107084 Feb 12,2013 12:02 PM UTC Apr 11,2013 10:59 AM UTC WPF 5
Tags: GridControl
Robert Dondo
Asked On February 12, 2013 12:02 PM UTC

By default, when I press [Enter], I am taken to the next Cell. Is there a way I can change that behavior such that pressing [Enter] only adds a line break in the current cell?

Thangapriya V [Syncfusion]
Replied On February 14, 2013 12:00 PM UTC

Hi Robert, 


We have analyzed your query. Your requirement can be achieved by setting AcceptsReturn="True" in GridDataColumnStyle for the visible column you want to add a line break in the current cell.




<syncfusion:GridDataVisibleColumn MappingName="CustomerID">


             <syncfusion:GridDataColumnStyle AcceptsReturn="True" />





Please let us know if you have any concerns.




Robert Dondo
Replied On February 15, 2013 03:25 PM UTC

Thanks, that helped. But, it only works when I press [SHIFT]+[ENTER] . Is there a way I can make it work with just [ENTER]?

Divya A [Syncfusion]
Replied On March 4, 2013 11:33 AM UTC

Hi Robert,


Sorry for the delay caused.


By default, in our GridDataControl line break can be inserted by pressing [Shift+Enter] key. When AcceptReturn property is set as True in GridDataColumnStyle as previously suggested, line break can be inserted by pressing [Enter] key.  We have attached a sample in the following location based on this.


Please let us know if you have any concern.





Robert Dondo
Replied On March 22, 2013 06:16 AM UTC


Even with the sample supplied, when I press [Enter], the cell loses focus. It only adds a line break when i do a [Shift]+[Enter].

Divya A [Syncfusion]
Replied On April 11, 2013 10:59 AM UTC

Hi Robert,


We have tested the reported issue with various versions of Essential Studio and we are able to reproduce this issue in and lower versions. This issue has been resolved in and higher versions. We would recommend you to upgrade to any of our higher versions to resolve this  issue.





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