private void button2_Click(object sender, EventArgs e)
 {
     int pos = 0;
     try {
         pos = dataGridView1.CurrentCell.RowIndex;
         int v = (int)dataGridView1[5, pos].Value;
         MessageBox.Show(""+v);
         DetallesDeCasting d = new DetallesDeCasting(v, this);
         d.MdiParent = this.MdiParent;
         d.Show();
     }
     catch { MessageBox.Show("Seleccione un casting primero"); }
 }
        private void button2_Click(object sender, EventArgs e)
        {
            int pos = 0;

            try {
                pos = dataGridView1.CurrentCell.RowIndex;
                int v = (int)dataGridView1[5, pos].Value;
                MessageBox.Show("" + v);
                DetallesDeCasting d = new DetallesDeCasting(v, this);
                d.MdiParent = this.MdiParent;
                d.Show();
            }
            catch { MessageBox.Show("Seleccione un casting primero"); }
        }