private void button2_Click(object sender, EventArgs e) { int pos = 0; try { pos = dataGridView1.CurrentCell.RowIndex; int dataPos = (int)dataGridView1[0, pos].Value; DetallesPerfil dtp = new DetallesPerfil(dataPos, this); dtp.MdiParent = this.MdiParent; dtp.Show(); this.Dispose(); } catch { MessageBox.Show("Seleccione un perfil de la tabla"); } }
public DetallesRep(int Id, DetallesPerfil d) { InitializeComponent(); this.Id = Id; this.d = d; }