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.
Unfortunately, activation email could not send to your email. Please try again.

columns width of DataBoungGrid

Thread ID:





94365 May 10,2010 07:12 AM Sep 24,2010 01:22 PM Windows Forms 4
Tags: GridControl
rivka klaiman
Asked On May 10, 2010 07:12 AM

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

rivka klaiman
Replied On May 20, 2010 01:59 AM


Arulraj A [Syncfusion]
Replied On May 20, 2010 09:41 AM

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);


nazmi anuar
Replied On September 23, 2010 10:14 PM

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

Rajadurai C [Syncfusion]
Replied On September 24, 2010 01:22 PM

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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.