我想將列標題「 主題否」移到右側。複選框列中不應有標題。如何移動GridView中的列標題
用於獲取複選框的代碼是這樣;
protected void GridView1_DataBound(object sender, EventArgs e)
{
foreach (GridViewRow objRow in GridView1.Rows)
{
TableCell tcCheckCell = new TableCell();
CheckBox chkCheckBox = new CheckBox();
tcCheckCell.Controls.Add(chkCheckBox);
objRow.Cells.AddAt(0, tcCheckCell);
}
}
我用DataTable來獲取數據到GridView。
如何將該柱頭向右移?
謝謝。
爲您的Gridview發佈標記(.aspx頁面)代碼。 – 2013-04-06 12:55:10