private void gridControl1_DoubleClick(object sender, EventArgs e) { //int intRow = gridView1.GetSelectedRows()[0]; string guid = ((DataRowView)(gridView1.GetFocusedRow())).Row[0].ToString(); frmClientAdd frmClientAdd = new frmClientAdd(); frmClientAdd.ClientEdit(guid); }
//编辑 private void tsbedit_Click(object sender, EventArgs e) { if (gridView1.RowCount > 0) { //int intRow = gridView1.GetSelectedRows()[0]; string guid = ((DataRowView)(gridView1.GetFocusedRow())).Row[0].ToString(); frmClientAdd frmClientAdd = new frmClientAdd(); frmClientAdd.ClientEdit(guid); } }
private void btnAdd_Click(object sender, EventArgs e) { frmClientAdd frmClientAdd = new frmClientAdd(); frmClientAdd.ClientAdd(); }