我有一个临时数据表,
private DataTable getmyDatatable()
{
DataTable dt = new DataTable();
DataColumn dc;
dc = new DataColumn("Name");
dt.Columns.Add(dc);
dc = new DataColumn("Age");
dt.Columns.Add(dc);
dc = new DataColumn("Address");
dt.Columns.Add(dc);
dc = new DataColumn("Phone");
dt.Columns.Add(dc);
//dc = new DataColumn("Sex");
//dt.Columns.Add(dc);
dt.Rows.Add("bala", "24", "cbe","999444444");
dt.Rows.Add("chendur", "23", "bangalore","9999999999");
dt.Rows.Add("chchandru", "22", "chennai","888888888");
return dt;
}
现在我希望这个数据表将它绑定到gridview并计算行编辑,行删除,行更新,新行添加等...因为我是初学者,请参考我的好/简单示例asp:gridview描述其所有功能?任何建议..