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.

DataGrid Column Sizing

Thread ID:





222 May 5,2002 11:53 AM May 6,2002 12:46 AM Windows Forms 1
Tags: FAQ
Asked On May 5, 2002 11:53 AM

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 12:46 AM

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.

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.