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

DataGrid Column Sizing

Thread ID:





222 May 5,2002 03:53 PM UTC May 6,2002 04:46 AM UTC WinForms 1
Tags: FAQ
Asked On May 5, 2002 03:53 PM UTC

How do I set the column width to automatically accommodate the largest string in a bound datatable. I tried manipulating the DataGridTextBoxColumn.Width property of the TableStyle but I cannot get that to work. Thanks, Huib

Clay Burch [Syncfusion]
Replied On May 6, 2002 04:46 AM UTC

One way you can do this is to track the maximum width as you use MeasureString to compute the width of the column items. Here is a FAQ link that does this. http://www.syncfusion.com/faq/windowsforms/search/877.aspx Regards, Clay


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