Datagridview headers

InertiaM

Well-known member
Joined
Nov 3, 2007
Messages
663
Location
Kent, UK
Programming Experience
10+
I have a datagridview which has 12 columns. These columns are effectively grouped as follows :-

1 2 3
1.1 1.2 2.1 2.2 3.1 3.2
1.1.1, 1.1.2, 1.2.1, 1.2.2, 2.1.1, 2.1.2, 2.2.1, 2.2.2, 3.1.1 etc

I'd like to try and create header rows that "merge" cells and display this grouping. I know I cant actually merge cells, and that I need to do it another way (such as code it within the CellPainting event).

I've searched but havent found any examples. Has anyone done this before, or do I need to start from scratch?

Thanks in advance :)
 
Use Label controls above the grid or on top of the header row? :)
 
Back
Top