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(); frmSupplierAdd frmSupplierAdd = new frmSupplierAdd(); frmSupplierAdd.SupplierEdit(guid); } }
private void btnAdd_Click(object sender, EventArgs e) { frmSupplierAdd frmSupplierAdd = new frmSupplierAdd(); frmSupplierAdd.SupplierAdd(); }