//权限判断,这个不是必须添加
new Permission.PrincipalPermissionEx(this.Module, "Edit");
txtFocus.Focus();
var row = e.Row as DataRowView;
int id = Convert.ToInt32(row["ID"]);
//根据ID获取当前行数据
_MachineTableMode.GetDataDtByID(id);
for (int i = 0; i < gridView1.Columns.Count; i++)
{
if (gridView1.Columns[i].FieldName == "ID" || gridView1.Columns[i].FieldName + "" == "")
{
continue;
}
//更新给当前行数据
_MachineTableMode.HeaderRow[gridView1.Columns[i].FieldName] = row[gridView1.Columns[i].FieldName];
}
//更新修改方法
_MachineTableMode.Update();