private void gridControl1_DoubleClick(object sender, EventArgs e) { if (gridView1.RowCount > 0) { //int intRow = gridView1.GetSelectedRows()[0]; string guid = ((DataRowView)(gridView1.GetFocusedRow())).Row[0].ToString(); frmDeptAdd frmDeptAdd = new frmDeptAdd(); frmDeptAdd.DeptEdit(guid); } }
private void btnAdd_Click(object sender, EventArgs e) { frmDeptAdd frmDeptAdd = new frmDeptAdd(); frmDeptAdd.DeptAdd(); }