Exemplo n.º 1
0
        private void btnProfile_Click(object sender, EventArgs e)
        {
            if (dgv.RowCount > 0)
            {
                id  = dgv.SelectedCells[0].Value.ToString();
                row = dgv.SelectedCells[0].RowIndex;

                frmProfile prof = new frmProfile();
                prof.txtID.Text = id;
                prof.ShowDialog();
                this.Focus();
            }
        }
Exemplo n.º 2
0
 private void btnProf_Click(object sender, EventArgs e)
 {
     if (dgv.RowCount > 0)
     {
         id  = dgv.CurrentRow.Cells["ID Number"].Value.ToString();
         row = dgv.SelectedCells[0].RowIndex;
         frmProfile prof = new frmProfile();
         prof.uid        = uid;
         prof.txtID.Text = id;
         prof.ShowDialog();
         this.Focus();
         txtSearch1.Text = id;
     }
 }