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

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.
Live Chat Icon For mobile
Up arrow icon