How to extend Datagrid's column-header height?

  • Thread starter Thread starter nate axtell
  • Start date Start date
N

nate axtell

I'm trying to extend the Height of Windows.Forms Datagrid's column headers.
Is it possible to allow wrapping of text in the header column cells along
with making the height larger?
 
This solution is strange. But it's working on my end. I'm using the first
release of VB.net, so I don't know if they have "corrected" this strangeness,
that, in this case, happens to work in your favor.

Set the datagrid's header font to a larger value, say 24.

Strangely, the header height gets large enough to accomodate that font size,
but the font size stays the same.

Then concatenate controlchars.crlf into the header text where you want the
breaks.
 

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