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

Changing GridBoundColumns Column Width

Thread ID:





25733 Mar 4,2005 02:50 PM UTC Mar 4,2005 03:36 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On March 4, 2005 02:50 PM UTC

How do i manually set the column width for GDBG ? on further searching i was able to locate this article but i think it was meant for 2.x http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=10464 We are using 3.1, so just want to make sure do i need to adopt the same approach or is there any other simple way to increase the column width... Regards Yogi

Administrator [Syncfusion]
Replied On March 4, 2005 03:32 PM UTC

To set a column width, you use code like gridDataBoundGrid1.Model.ColWidths["Col1"] = 150; If you are trying to do this initially, you also have to set grid.AllowResizeToFit = false. If you do not, the grid''s default sizing will step on your explicit sizing.

Administrator [Syncfusion]
Replied On March 4, 2005 03:36 PM UTC

Thx.. ideally it should be part of Grid Designer... hope u must have considered this in your next release... Thx again..


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon