The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
How do I auto-size the columns in a GridDataBoundGrid control? I know how to do it in a GridControl control, but the object model for GridDataBoundGrid seems to be completely different.
NANisha Arockiya A Syncfusion Team September 17, 2008 05:17 AM UTC
Hi,
Thanks for your interest in Syncfusion Products.
If you want to autosize the columns to fit the text, you can call the ResizeToFit member of the ColWidths class. You can pass in any range you want to resize. This code does the whole table.
Please let me know if this is not the information you need.
Regards, Nisha
>How do I auto-size the columns in a GridDataBoundGrid control? I know how to do it in a GridControl control, but the object model for GridDataBoundGrid seems to be completely different.