private void btnUpdatePro_Click(object sender, EventArgs e) { if (dr != null) { FrmDetailPro detail = new FrmDetailPro(dr); detail.Show(); } }
private void gViewProducts_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { if (gViewProducts[e.ColumnIndex, e.RowIndex] != null) { FrmDetailPro detail = new FrmDetailPro(gViewProducts.Rows[e.RowIndex]); detail.ShowDialog(); this.OnLoad(null); } } catch (Exception) { } }