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

programatically resizing rows on a Windows Forms datagrid

Thread ID:




4045 Apr 24,2003 07:48 PM UTC WinForms 0
Tags: FAQ
Asked On April 24, 2003 07:48 PM UTC

I have a Windows Forms DataGrid that contains some cells with multiple lines of data. I would like the grid to automatically resize each row to fit all of the lines of each cell in that row. But, I can't figure out how to do it. It seems like it should be easy enough. The fact that I can double-click on the row separator in the row header to trigger the resize implies there is a method out there that will do this. But, my search for the method (or an event that triggers it) has been fruitless. I can't even figure out how to access the RowHeight property of an individual row of the DataGrid. Any thoughts on how I might be able to accomplish this? Thanks, Ken


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