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

columns width of DataBoungGrid

how can I set another width to each columns in DataBoungGrid?

4 Replies

RK rivka klaiman May 20, 2010 05:59 AM UTC

???


AA Arulraj A Syncfusion Team May 20, 2010 01:41 PM UTC

Hi Rivka,

Thanks for your interest in Syncfusion Products.

You can specify the width of the column by using ColWidths[index] property. You can do this in three ways. The below codes achieves this individually.

this.gridDataBoundGrid1.Model.ColWidths[3] = this.gridDataBoundGrid1.DefaultColWidth + 200;
this.gridDataBoundGrid1.DataBoundGridModel.ColWidths[3] = 250;
this.gridDataBoundGrid1.SetColWidth(1, 1, 250);


Regards,
Arulraj.A


NA nazmi anuar September 24, 2010 02:14 AM UTC

hi is there a way to edit the columns width in the designer view?



RC Rajadurai C Syncfusion Team September 24, 2010 05:22 PM UTC

Hi Nazmi,

Thanks for your interest in Syncfusion Products.

The columns widths cannot be set to grid in designer view. It can be set only programmatically through GridModel.

Please let us know if you need any further assistance.

Regards,
Rajadurai


Loader.
Live Chat Icon For mobile
Up arrow icon