private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { string xx = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); materialedit fm = new materialedit(xx); fm.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { string xx = dataGridView1.SelectedRows[0].Cells[0].Value.ToString(); materialedit fm = new materialedit(xx); fm.ShowDialog(); }