Exemplo n.º 1
0
        private void frmCadPaciente_Activated(object sender, EventArgs e)
        {
            atualizaGrid();

            frmCadPaciente cd = new frmCadPaciente();

            if (selLinha)
            {
                if (idLinha > 0)
                {
                    for (int i = 0; i < gvDados.Rows.Count; i++)
                    {
                        int teste = Convert.ToInt16(gvDados.Rows[i].Cells["ID"].Value);
                        if (Convert.ToInt16(gvDados.Rows[i].Cells["ID"].Value) == idLinha)
                        {
                            gvDados.Rows[i].Selected = true;
                        }
                    }
                }
            }
        }
Exemplo n.º 2
0
        private void btnNovo_Click(object sender, EventArgs e)
        {
            frmCadPaciente cl = new frmCadPaciente();

            cl.ShowDialog();
        }