The meeting is not difficult, this two-level table in the online search for no suitable, are said to be Rowmergeview control, do not know how to go.
After a long time to know, Rowmergeview is a homemade control, can be used when the DataGridView control,
Nonsense don't say on the steps
1. Add RO
The Wmergeview control, which is a. dll file. It doesn't seem like you can add a file, you need to M I
2. Code:
Querying out data
Sqlcon2. Open ();
SqlCommand sqlcom2 = new SqlCommand ("PROC_ view specified number of operation strips", sqlcon2);
Sqlcom2.commandtype = CommandType.StoredProcedure;
SqlDataAdapter sqlda2 = new SqlDataAdapter (SQLCOM2);
DataSet ds2 = new DataSet ();
Sqlda2. Fill (DS2);
This.rowMergeView1.DataSource = ds2. Tables[0];
Set Header Height
This.rowMergeView1.ColumnHeadersHeight = 40;
This.rowMergeView1.ColumnHeadersHeightSizeMode = datagridviewcolumnheadersheightsizemode.disableresizing;
THIS.ROWMERGEVIEW1.MERGECOLUMNNAMES.ADD ("Column1");
To set up a merged table header
This.rowMergeView1.AddSpanHeader (0, 5, "production single process Details");
It's so simple, got the afternoon
3.
Disadvantages are 1. Not three layers table 3. Without two-dimensional head
The great God, who had a better way (estimating that the great God would never read my essay),
are trying to make a more perfect template,
DataGridView Two-dimensional table head, double-sided table head