GridControl column auto-resize question

Hi there,

I am using a GridControl with several columns. I knew that there is a method called gridcontrol.ColWidths.ResizeToFit, but it seems that this mathod can only let columns resize according to their contents.

What I want to do is to set the columns' width always resize to fit the width of the GridControl itself. So that the columns will always occupy the entire Gridcontrol, without showing horizontal scroll bar. Are there any built-in method can achieve this?

Thanks in advance

Kun

1 Reply

AD Administrator Syncfusion Team January 5, 2007 01:37 PM UTC

Hi Kun,

Please refer the KB links:

Automatic sizing in GridControl
To dynamically provide column width

Let us know if this is not what you needed.

Best Regards,
Haneef

Loader.
Up arrow icon