//txtBuscar - Evento TextChanged - Muestra los datos que coincidan con la búsqueda en el "dvgUsuarios". private void txtBuscar_TextChanged(object sender, EventArgs e) { if (this.txtBuscar.Text == String.Empty || this.cbxTipoBusqueda.Text == "") { Configuracion.NumeroPagina = 1; this.Mostrar(); this.panelPaginacion.Show(); } else { try { this.dgvUsuarios.DataSource = NUsuarios.Buscar(this.txtBuscar.Text, this.cbxTipoBusqueda.Text); } catch (Exception ex) { MessageBox.Show(ex.Message, String.Format(Configuracion.Titulo, "Error"), MessageBoxButtons.OK, MessageBoxIcon.Error); } this.panelPaginacion.Hide(); } }