private void LlenarListado() { try { this.Cursor = Cursors.WaitCursor; FaltasEN oRegistroEN = new FaltasEN(); FaltasLN oRegistroLN = new FaltasLN(); oRegistroEN.Where = WhereDinamico(); if (oRegistroLN.Listado(oRegistroEN, Program.oDatosDeConexioEN)) { dgvLista.Columns.Clear(); System.Diagnostics.Debug.Print(oRegistroLN.TraerDatos().Rows.Count.ToString()); if (ActivarFiltros == true) { dgvLista.DataSource = AgregarColumnaSeleccionar(oRegistroLN.TraerDatos()); } else { dgvLista.DataSource = oRegistroLN.TraerDatos(); } FormatearDGV(); this.dgvLista.ClearSelection(); tsbNoRegistros.Text = "No. Registros: " + oRegistroLN.TotalRegistros().ToString(); } else { throw new ArgumentException(oRegistroLN.Error); } } catch (Exception ex) { MessageBox.Show(ex.Message, "Llenar listado de registro en la lista", MessageBoxButtons.OK, MessageBoxIcon.Error); } finally { this.Cursor = Cursors.Default; } }