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

Wrap text in column header

Does anyone know how to wrap text in the column header?

1 Reply

GG Gowtham Gopalsamy Syncfusion Team December 16, 2019 10:39 AM UTC

Hi Mariusz,    
    
Thanks for using Syncfusion controls.   
   
You can achieve your requirement to wrap the column header text by using the property AllowHeaderTextWrapping as true.   
   
Please find the below code snippet.  
   
this.sfDataGrid.Columns["OrderID"].AllowHeaderTextWrapping = true;   
   
   
Please find the below sample link.   
    
   
Please let us know, if you require further assistance on this.   
    
Regards,   
Gowtham   


Loader.
Up arrow icon