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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

columns width of DataBoungGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

94365 May 10,2010 11:12 AM UTC Sep 24,2010 05:22 PM UTC WinForms 4
loading
Tags: GridControl
rivka klaiman
Asked On May 10, 2010 11:12 AM UTC

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

rivka klaiman
Replied On May 20, 2010 05:59 AM UTC

???

Arulraj A [Syncfusion]
Replied On 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

nazmi anuar
Replied On September 24, 2010 02:14 AM UTC

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


Rajadurai C [Syncfusion]
Replied On 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


CONFIRMATION

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.

Warning Icon 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.Close Icon

;