📜  gridview列单元格对齐表单c#代码示例

📅  最后修改于: 2022-03-11 14:48:57.790000             🧑  作者: Mango

代码示例1
protected void GridView1_PreRender(object sender, EventArgs e)
{
foreach (GridViewRow row in GridView1.Rows)
{
if (row.RowType == DataControlRowType.DataRow)
{
row.Cells[0].HorizontalAlign = HorizontalAlign.Left;
}
}
}