How to set column width on GridDataBoundGrid

Hi,

Is there way to set column width on a GridDataboundGrid other than the DefaultColWidth property, either programmatically or via the designer?

Thanks!


1 Reply

VK Vinoth Kumar K Syncfusion Team February 12, 2008 09:38 PM UTC

Hi GZ,

Thanks for using Syncfusion Products.

You can set the column width on a GridDataBoundGrid programmatically by using the below given code snippet. Please refer to the code:

this.GridDataBoundGrid1.Model.ColWidths["ColName"] = 50 //Whatever you want.

Please let me know if you have any questions.

Regards,
Vinoth



Loader.
Up arrow icon