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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataGrid Column Sizing

Thread ID:

Created:

Updated:

Platform:

Replies:

222 May 5,2002 03:53 PM UTC May 6,2002 04:46 AM UTC WinForms 1
loading
Tags: FAQ
Huib
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

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.

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

;