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

programatically resizing rows on a Windows Forms datagrid

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

Live Chat Icon For mobile
Up arrow icon