grid column width

How to make a grid column width with fix value?

1 Reply

AD Administrator Syncfusion Team January 5, 2006 05:47 AM UTC

Hi Hrvoje, To change, the column width in GridControll: // To set default column width for all Columns this.gridControl1.DefaultColWidth = 40; // For a particular column this.gridControl1.ColWidths[3] = 250; // To set a range of columns this.gridControl1.ColWidths.SetRange(1,5,50); To change, the column width in GridDataBoundGrid Control: this.gridDataBoundGrid1.ResizeToFit = false; // To set default column width for all Columns this.gridDataBoundGrid1.DefaultColWidth = 40; // For a particular column this.gridDataBoundGrid1.Model.ColWidths[3] = 250; // To set a range of columns this.gridDataBoundGrid1.Model.ColWidths.SetRange(1,5,50); Regards, Madhan.

Loader.
Up arrow icon