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

cell text direction in reactjs syncfusion datatable export excel

hi there,

in export excel for syncfusion datatable, i want to change text direction. how can i do that.

i search to much but i just find usage

args.style = { backColor: '#99ffcc' } in


what is the other option for style?

1 Reply

RR Rajapandi Ravi Syncfusion Team February 9, 2023 01:31 PM UTC

Hi Bagher,

Greetings from Syncfusion support

Based on your query we could see that you like to rotate the header text in the excel document. You can rotate the header text using the rotation property of the style argument in the excelHeaderQueryCellInfo event, you can rotate the header text of the column header in the excel exported document. We have already discussed about your requirement in our documentation which can be accessed from the below link,

Documentation: https://ej2.syncfusion.com/react/documentation/grid/excel-export/excel-cell-style-customization/#rotate-a-header-text-to-a-certain-degree-in-the-exported-grid


Rajapandi R

Live Chat Icon For mobile
Up arrow icon