CM
Charlie Mao
October 11, 2006 11:23 PM UTC
Sorry, I mean for each column not the entire grid.
>Can someone tell me how to set the default column width in a data bound grid. thanks
AD
Administrator
Syncfusion Team
October 12, 2006 01:10 PM UTC
Hi Charlie,
Try the code below to set the column width for any particluar column.
this.gridDataBoundGrid1.AllowResizeToFit = false;
this.gridDataBoundGrid1.Model.ColWidths[ColIndex] = 100;
//or
this.gridDataBoundGrid1.Model.ColWidths["Col Name"] = 100;
Thanks,
Rajagopal
CM
Charlie Mao
October 12, 2006 06:16 PM UTC
Thanks Rajagopal,
I''ll try this.....
>Hi Charlie,
Try the code below to set the column width for any particluar column.
this.gridDataBoundGrid1.AllowResizeToFit = false;
this.gridDataBoundGrid1.Model.ColWidths[ColIndex] = 100;
//or
this.gridDataBoundGrid1.Model.ColWidths["Col Name"] = 100;
Thanks,
Rajagopal