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

Setting column width in designer?

Thread ID:





5692 Jul 14,2003 04:12 PM UTC Jul 14,2003 05:31 PM UTC WinForms 1
Tags: GridControl
Francois Rioux
Asked On July 14, 2003 04:12 PM UTC

I'd like to adjust the width columns in a databound grid. I tried though the databound columns collection where I can see and change the style info. Unfortunately, I can't find a width property? Is that possible to set column widths using the designer instead of programatically? Is is possible to see the column with the specified width? Actually, all the columns have the same width in design mode. Thanks.

Administrator [Syncfusion]
Replied On July 14, 2003 05:31 PM UTC

Currently, you would have to derive your own GridBoundColumns to do this. Here is a sample that adds a Width property to a CustomGridBoundColumn. Width can be used at both design time and runtime as long as it is not zero. It has a Northwind datasource set in the designer, so you may have to tweak that to get it to run on your system.


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