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
close icon

format column width in gridgroupingview

I am using syncfusion 4.4.

I have a DataTable as the dataSource of a gridGroupingView, now I want to set up the width of each column in the gridGroupingviw. Thanks for helping me on this.

2 Replies

HA haneefm Syncfusion Team July 23, 2007 05:24 PM UTC

Hi Wen,

To change the individual column width manually, you could try this code snippet:

this.gridGroupingControl1.TableDescriptor.Columns["ColumnName"].Width = 175;

//For paticular table.
this.gridGroupingControl1.GetTableDescriptor("TableName").Columns["ColumnName"].Width=50;

Best regards,
Haneef


WJ Wen Jiang July 26, 2007 02:40 PM UTC

Haneef,

Thank you very much. This is very helpful.

Wen

>Hi Wen,

To change the individual column width manually, you could try this code snippet:

this.gridGroupingControl1.TableDescriptor.Columns["ColumnName"].Width = 175;

//For paticular table.
this.gridGroupingControl1.GetTableDescriptor("TableName").Columns["ColumnName"].Width=50;

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon