/// <summary> /// Busca a un cliente por habilitado o deshabilitado /// </summary> protected void ddlFiltro_SelectedIndexChanged(object sender, EventArgs e) { int itemSel = Int32.Parse(ddlFiltro.SelectedItem.Value); if (itemSel == 1 || itemSel == 0) { ClienteBLL cliBLL = new ClienteBLL(); grvEventos.DataSource = cliBLL.FiltrarClientes(itemSel); grvEventos.DataBind(); } else { ClienteBLL cliBLL = new ClienteBLL(); grvEventos.DataSource = cliBLL.traerClientes(); grvEventos.DataBind(); } }