Пример #1
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         dataGridView1.CurrentCell.Selected = true;
         CTSP CT = new CTSP();
         CT.ma = int.Parse(dataGridView1.Rows[e.RowIndex].Cells["MaSP"].Value.ToString());
         this.Hide();
         CT.ShowDialog();
         this.Close();
     }
 }