private void toolStripButton1_Click(object sender, EventArgs e) { GrStockDetail frm = new GrStockDetail(); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { loadgrid(); } }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { GrStockDetail frm = new GrStockDetail(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString()); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { loadgrid(); } }