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

Data Grid with text wrapping column property out of the box ?

Thread ID:





113698 Oct 4,2013 10:48 AM UTC Oct 11,2013 10:59 AM UTC WinRT 1
Tags: SfDataGrid
Gary Burgess
Asked On October 4, 2013 10:48 AM UTC

My current project needs to show a whole bunch of notes in a data grid, but I'm having great difficulty finding a WPF grid that does what I am after.  The grid also shows date of note being taken, a reminder date field, etc.  I need to be able to show the data (read only) with each row having a different height - ie. the "Note" column needs to have TextWrapping and adjust the row should adjust to the height of the "Note" column. 

I also want to be able to enter a new note (in the last row) which should allow for the Enter key to start a new line, and of course the row height needs to expand for the row where the note is being entered.

I've tried various "DataTemplate" but with no luck .. the row height would not dynamically change.

Ideally, this needs to be Dot Net 4.0 compatible, which I believe excludes the new SfDataGrid.  If I really need to, I can try and push my client to install Dot Net 4.5 and make use of the SfDataGrid as I notice that the grid's GridTextCoumn does have a property for TextWrapping - but I could not get this to work either.  I also could not find a single example of SfDataGrid with the TextWrapping property being utilized.

Any ideas ... please ??


Jai Ganesh S [Syncfusion]
Replied On October 11, 2013 10:59 AM UTC

Hi Gary,


Thanks for using Syncfusion products.


We have analyzed your queries. Please find the response for your queries below,


Query 1:


As of now we do not have the support to change the RowHeight dynamically based on Cell Text Size. However we have already logged the feature report for this requirement internally. Until that you can use “SfGrid.RowHeight” property to set the row height for DataGrid based on the cell text size.


Query 2:


We glad to inform  you that the SfDataGrid is supported for .Net  framework 4.0

Please let us know if you need further assistance.

Thank you,

Jai Ganesh S


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

or the page will be automatically redirected to 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