Пример #1
0
 private void Listar()
 {
     try
     {
         dataVer.DataSource = NPersona.Listar();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + ex.StackTrace);
     }
 }
 private void Listar()
 {
     try
     {
         DgvListado.DataSource = NPersona.Listar();
         this.Formato();
         LblTotal.Text = "Total de registros: " + Convert.ToString(DgvListado.Rows.Count);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + ex.StackTrace);
     }
 }