Datagrid Header Urgent!!!!!!

  • Thread starter Thread starter Chris Calhoun
  • Start date Start date
C

Chris Calhoun

How do I set the header height in a datagrid.
Meaning the like word wrapping "Header Text" "Header

Text"

Thanks in Advance.
 
Chris,

You may play with DataGridTableStyles to achieve the effect you want, but
I'm afraid this is yet another limitation of the
System.Windows.Forms.DataGrid control. From what I see in the documentation,
you can alter fonts/fore and back colors, but not heights.
 
You can use DataGrid1.HeaderStyle.Height = 10;

Dmitriy Lapshin said:
Chris,

You may play with DataGridTableStyles to achieve the effect you want, but
I'm afraid this is yet another limitation of the
System.Windows.Forms.DataGrid control. From what I see in the documentation,
you can alter fonts/fore and back colors, but not heights.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Chris Calhoun said:
Windows grid.
 

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