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. Image for the cookie policy date
close icon

Wordwrap in WinRT SfDataGrid Cell

Hi,

My SfDataGrid is binded to an itemsource and the content if loads in the cells is dynamic. I'm looking for an option to word wrap the content in the cell as the length of the value could be very long. In your online documentation, it is shown how to word wrap a Header Cell but the same way is not working for the Value Cells. Please let me know the solution for it. I've given below an example of how the things are coming and how I need.

How it is coming:

Column 1Column 2Column 3Column 4
Item 1Item Description is coming like this which shouldn't come. This should get word wrap. Lorem Ipsum Dolar Smit, Lorem Ipsum Dolar Smit, Lorem Ipsum Dolar Smit, Item Item
Item 2Item 2 Description

How it should come:

Column 1Column 2Column 3Column 4
Item 1 Details should make it equal widthItem Description is coming like this which shouldn't come.
 This should get word wrap. Lorem Ipsum Dolar Smit, Lorem
 Ipsum Dolar Smit, Lorem Ipsum Dolar Smit,
Item 1 Details should make it equal widthItem 1 Details should make it equal width
Item 2Item 2Item 2Item 2
Thanks,
Syed Asif

1 Reply

SR Sivakumar R Syncfusion Team January 12, 2015 04:13 PM UTC

Hi Asif,

You can achieve your requirement using SfDataGrid.QueryRowHeight event.
Documentation link:
http://help.syncfusion.com/UG/winrt/documents/autorowheight.htm

References:
http://www.syncfusion.com/kb/3132
http://www.syncfusion.com/kb/3192

Thanks,
Sivakumar

Loader.
Live Chat Icon For mobile
Up arrow icon