NA
Nisha 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.
this.gridDataBoundGrid1.Model.ColWidths.ResizeToFit(GridRangeInfo.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.
-TC
AB
abc
September 18, 2008 03:20 PM UTC
Nisha,
Thank you. That worked great.
-TC