views:

265

answers:

2

I like to take a column header text and span it across to columns. How would you do this? I can't find a "Headercell.Span." Also is it possible to have two column headers?

Like this

| FULL NAME | DESC. |

| first | last | state | age |


DATA

+1  A: 

The DataGridView does not support this. You could eventually simulate a header using labels and prevent expanding columns more than label width.

thelost
A: 

You could probably do this by creating a template field.

In the header template, create your heading.

In the item template, just add <%#Eval ("YourDataItem") %> statements for every data item you want to include.

adrianos