0
您好,我正在開發一個asp.net項目。asp.net row_created獲取第一行插入單元格的文本
我正在使用數據庫和gridview。 我想要創建每個gridviewrow的第一個單元格的名稱。 爲什麼這不起作用?
protected void CustomersGridView_RowCreated(Object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Response.Write(e.Row.Cells[0].Text);
}
}