什么是直接在 Web 表单中更新和保存网格视图数据的代码。这是我拥有的代码。帮我删除记录和更新记录。
protected void CancelRecord(object sender, GridViewCancelEditEventArgs e)
{
gridRegistrationTableDetails.EditIndex = -1;
BindData();
}
protected void EditRecord(object sender, GridViewEditEventArgs e)
{
gridRegistrationTableDetails.EditIndex = e.NewEditIndex;
BindData();
}
protected void UpdateRecord(object sender, GridViewUpdateEventArgs e)
{
}
protected void DeleteRecord(object sender, GridViewDeleteEventArgs e)
{}
我需要编辑四列 Emp name,Emp address,emp dept,emp mail.emp ID 是主键。请帮我解决这个问题..