multiline column header in DataGrid

G

Guest

How do I define multiline column header in DataGrid control?
I need two-line headers for some columns.

Thank you
 
D

Dan Bass

Any cell in a Datagrid (which is an HTML table when presented client side)
wraps text to as many lines as required to fit by default.

When you say multiline, is this what you mean, or are you refering to having
two fields in one column?
 
D

Dan Bass

Have you tried putting a new line character (\r\n) into the header?

string columnHeader1 = "First Line\r\nSecond Line";
 
G

Guest

Yes I have. It didn't work: Second Line becomes invisible, and header's
height remains the same, with room for one line only.
 

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

Top