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.

programatically resizing rows on a Windows Forms datagrid

Thread ID:

Created:

Platform:

Replies:

4045 Apr 24,2003 03:48 PM Windows Forms 0
loading
Tags: FAQ
Ken
Asked On April 24, 2003 03:48 PM

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

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.

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.

;