I am trying to make a multi row column that has two column header (groups) and 3 rows. In the first row, the first column has 2 columns under it and the second column has two columns as well. but in the third row the first column is blank (or atleast looks that way to the user), the second column has three columns where on column belongs to on parent and the other 2 belong to the other column
Is there a parent child relationship I am missing to get the second row under it's respected parent or is it another GridViewColumnGroup
| +------------------------------------+----------------------------------------------------+ |
| | Name | Location | |
| +----------------+-------------------+--------------------------------+-------------------+ |
| | fname | lName | address 1 | address 2 | |
| +----------------+-------------------+---------------+----------------+-------------------+ |
| | | | street | state | country | |
| +----------------+-------------------+---------------+----------------+-------------------+ |
Is there a parent child relationship I am missing to get the second row under it's respected parent or is it another GridViewColumnGroup
| view.ColumnGroups.Add(new GridViewColumnGroup("Name")); |
| view.ColumnGroups.Add(new GridViewColumnGroup("Location")); |
| view.ColumnGroups[0].Rows.Add(new GridViewColumnGroupRow()); |
| view.ColumnGroups[0].Rows.Add(new GridViewColumnGroupRow()); |
| view.ColumnGroups[0].Rows[0].Columns.Add(radGridView1.Columns["fname"]); |
| view.ColumnGroups[0].Rows[0].Columns.Add(radGridView1.Columns["lName"]); |
| view.ColumnGroups[1].Rows.Add(new GridViewColumnGroupRow()); |
| view.ColumnGroups[1].Rows.Add(new GridViewColumnGroupRow()); |
| view.ColumnGroups[1].Rows[0].Columns.Add(radGridView1.Columns["address 1"]); view.ColumnGroups[1].Rows[0].Columns.Add(radGridView1.Columns["address 2"]); |
| view.ColumnGroups[1].Rows[1].Columns.Add(radGridView1.Columns["street"]); view.ColumnGroups[1].Rows[1].Columns.Add(radGridView1.Columns["state"]); view.ColumnGroups[1].Rows[1].Columns.Add(radGridView1.Columns["country"]); |