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.
Up arrow icon