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

Wordwrap in WinRT SfDataGrid Cell

Thread ID:

Created:

Updated:

Platform:

Replies:

117945 Jan 12,2015 02:04 PM UTC Jan 12,2015 04:13 PM UTC WinRT 1
loading
Tags: SfDataGrid
Syed Najmuddin Asif
Asked On January 12, 2015 02:04 PM UTC

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

Sivakumar R [Syncfusion]
Replied On 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

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

;