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.

How To: GridDataBoundGrid ColumnWidth Float

Thread ID:

Created:

Updated:

Platform:

Replies:

9983 Jan 20,2004 03:06 AM Jan 20,2004 03:20 AM Windows Forms 1
loading
Tags: GridControl
bizdin
Asked On January 20, 2004 03:06 AM

Hi, I''m using a GridDataBoundGrid and want to set specific width to each column. I tried Grid.Model.ColWidths[1] = 100 :did not work and also Grid.SetColWidth[1,2,new int[]{100,100}): did not work.. What is the solution?

Administrator [Syncfusion]
Replied On January 20, 2004 03:20 AM

In addition to setting grid.Model.ColWidths, make sure you set grid.AllowResizeToFit = false. If this is set true (the default setting), the grid will try to autosize the colwidths based on the header text, and this will step on your explicit sizing.

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.

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.

;