protected void ddlEstado_SelectedIndexChanged(object sender, EventArgs e) { List <ProductoEntidad> lista = new List <ProductoEntidad>(); int estado = (this.ddlEstado.SelectedIndex); Boolean vEstado = false; if (estado == 1) { vEstado = true; } lista = ProductoLN.ObtenerProductoEstado(vEstado); grvListado.DataSource = lista; grvListado.DataBind(); }