private void btnReporte_Click(object sender, EventArgs e) { ConsultaReporte _Consultareporte = new ConsultaReporte(151); _Consultareporte.StartPosition = FormStartPosition.CenterScreen; _Consultareporte.ShowDialog(); }
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 9) { //obtienes la fila actual DataGridViewRow fila = (sender as DataGridView).Rows[e.RowIndex]; int vfolio = int.Parse(fila.Cells[0].Value.ToString()); ConsultaReporte _frmReporte = new ConsultaReporte(vfolio); _frmReporte.StartPosition = FormStartPosition.CenterScreen; _frmReporte.ShowDialog(); } }