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

GridDataBoundGrid column width

Thread ID:





5397 Jul 1,2003 05:02 PM UTC Jul 2,2003 05:15 AM UTC WinForms 2
Tags: GridControl
Mihai Vlad
Asked On July 1, 2003 05:02 PM UTC

Hello, I am trying to set the wifth of a column in a GridDataBoundGrid. Can this be achieved? The problem is that for the combobox cells the arrow overlaps the text the menu contains, so I need to make the column a liitle wider... Can u help me ?

Administrator [Syncfusion]
Replied On July 1, 2003 09:22 PM UTC

To explicitly set the width of a column in a GridDataBoundGrid, use code like this.grid.AllowResizeToFit = false; this.grid.Model.ColWidths[2] = 100; You need the first line otherwise the grid will try to autosize things based on the header text and this will interfere with your sizing.

Mihai Vlad
Replied On July 2, 2003 05:15 AM UTC

Thanks. It worked. :) Mihai Vlad


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