Ejemplo n.º 1
0
        private void dataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridView.Columns[e.ColumnIndex] is DataGridViewButtonColumn && e.RowIndex != -1)
            {
                int personID = (int)dataGridView.Rows[e.RowIndex].Cells["PersonID"].Value;

                Reports.frm_oKandidatu oKandidatu = new Reports.frm_oKandidatu(personID);
                oKandidatu.Show();
            }
        }
 private void btn_PodaciOKandidatu_Click(object sender, EventArgs e)
 {
     Reports.frm_oKandidatu oKandidatu = new Reports.frm_oKandidatu((int)dGV_Kandidati.SelectedRows[0].Cells["PersonID"].Value);
     oKandidatu.Show();
 }