How to set auto width for print?

Hi!
Please tell me, how to set the column width for printing according to the data?
Print

4 Replies 1 reply marked as answer

MA Mohanram Anbukkarasu Syncfusion Team January 28, 2021 02:18 PM UTC

Hi Ruslan, 

Thanks for contacting Syncfusion support.  

We are currently checking the feasibility to achieve this requirement. We will check and update with further details on February 1 2021. We appreciate your patience until then. 

Regards, 
Mohanram A. 



MA Mohanram Anbukkarasu Syncfusion Team February 1, 2021 09:40 AM UTC

Hi Ruslan, 

Thanks for your patience.  

It is not possible to set the width of the columns on printing manually. However you can make the columns to adjust its width according to its content by disabling SfDataGrid.PrintSettings.AllowColumnWidthFitToPrintPage property as shown below. 

Code example :  

dataGrid.PrintSettings.AllowColumnWidthFitToPrintPage = false;  

 



Please let us know if you require further assistance from us.  

Regards, 
Mohanram A. 


Marked as answer

RU ruslik February 3, 2021 09:33 AM UTC

Thank you for answer!


MA Mohanram Anbukkarasu Syncfusion Team February 4, 2021 08:54 AM UTC

Hi Ruslan, 

Thanks for the update. 

Please let us know if you have any further queries on this. We are happy to help you. 

Regards, 
Mohanram A. 


Loader.
Up arrow icon