GridViewRow row = new GridViewRow(0, -1, DataControlRowType.Header, DataControlRowState.Normal);
TableCell headerCell = new TableHeaderCell();
headerCell.Text = "1";
headerCell.Width = 100;
headerCell.RowSpan = 2;
row.Cells.Add(headerCell);
headerCell = new TableHeaderCell();
headerCell.Text = "2";
headerCell.Width = 100;
headerCell.RowSpan = 2;
row.Cells.Add(headerCell);
headerCell = new TableHeaderCell();
headerCell.Text = "3";
headerCell.Width = 100;
row.Cells.Add(headerCell);
headerCell = new TableHeaderCell();
headerCell.Text = "4";
headerCell.Width = 100;
row.Cells.Add(headerCell);
headerCell = new TableHeaderCell();
headerCell.Text = "5";
headerCell.Width = 100;
row.Cells.Add(headerCell);
headerCell = new TableHeaderCell();
文章来源于领测软件测试网 https://www.ltesting.net/