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

Wrap text in grid cells

How do you implement the equivalent of TextWrapping="Wrap" and/or set the row height to expand to the content?



1 Reply

PS Prakash Selvaraj Syncfusion Team March 21, 2013 06:18 AM UTC

Hi Gary,

 

Thanks for choosing syncfusion products.

 

We have analysed your query. You can achieve your requirements by editing GridCell Style and setting Wrap for TextWrapping in TextBlock. For adjusting the row height you can set your desire height value for RowHeight property in SfDataGrid. We have created a simple sample to achieve you requirements. Kindly refer the below sample.

 

Sample: TextWrapping.zip

 

Please let us know if you need further assistance.

 

Regards,

Prakash S.


Loader.
Live Chat Icon For mobile
Up arrow icon