Automatic row height datagridview

  • Thread starter Thread starter Robert Bravery
  • Start date Start date
R

Robert Bravery

Hi all,

I'm new to C#. So excuse the obvious. I have a datagridview on a form. One
of the columns is bound to a table column that is of text data type. It
contains various lenths of text. I have set the column in the datagrid view
to autosize to fill, and the wrap property to true.
But because the text is aof varying sizes. How can I then get the rows to
autosize it height based on the text in there. So that the affect is that
the rows are not set to a single global size but will vary to accomodate all
text.

Thanks
Robert
 
HI,

I found the property, but now when scrolling down many rows the row height
is not correctly set, until I resize the form width slightly. Is there a way
to do this automatically

Thanks
Robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top