filtering

[Reloaded] Error while sorting filtered data from a GridView

Hello guys, I have an error I cannot solve, on a ASP.NET website. One of its pages - Countries.aspx, has the following controls: a CheckBox called "CheckBoxNAME": } Also, this is the main onload event of the page: protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) ...

TSQL Hack needed for getting a filter for data.

A UI (before the report shows) shows a look up (Combo) that has (ID = 0).All Organization Units (ID =4).HR (ID = 5).DEV I need to: Be able to show data of (4) + (5) if (0) is selected. Only (4) OR (5) if either HR or DEV is selected. Lookup combo code (Selected Feeds the parameter in the below query.) Select 0 AS ID,'All O...

Wpf Listview performance with filter and sort enabled

Hi All, I have WPF listview, with around 1000 records in it. I am doing on the fly filtering of listview items, that is as user types in to text box control, it matches items with text box content and filter items in to listview. So far filtering was working fine and it was pretty fast. Recently I have implemented custom sort on this ...

WPF Listview SORT and FILTER performance issue

Hi all , I have listview with custom sort and filter implemented on it...It is textbox based filter , as user types in, items in the listview are filtered. Now...when i apply sort on listview, filter is very slow because each time custom sort compare method is called for each item in listview while filtering... how I can avoid compa...

Need help on developing LINQ Lambda expresssion to filter on a Schedule

I am having a hard time finding the lambda expression to call on a list to correctly filter an object structure. I was hoping someone here could help out. I am using .NET 3.5, and LINQ and the object domain is set up from Linq to SQL DBML. I specifically want to use lambda expressions. The object structure is one where persons have s...

Filtering a datasource by range in the Symphony CMS

I'm currently working on a website and have run into a major problem. In a recent question I asked how to filter my XML with XSLT based on the content of a series of XML nodes. The end result was this: <xsl:if test="listings/entry[available-weeks/item[number(.) &gt;= {$url-min} and number(.) &lt;= {$url-max}]]"> //my listings show h...

Suppress find & grep "cannot open" output

I was given this syntax by user phi find . | awk '!/((\.jpeg)|(\.jpg)|(\.png))$/ {print $0;}' | xargs grep "B206" I would like to suppress the output of grep: can't open..... and find: cannot open lines from the results.sample output to be ignored: grep: can't open ./cisc/.xdbhist find: cannot open ./cisc/.ssh ...

Filtering a Class and Subclass in Django

I have a project with an FAQ app. The app has models for FAQ (written by the site authors) and UserFAQ (written by users-- not just a clever name). I want to return all entries, FAQ or UserFAQ that match certain conditions, but I also want to exclude any UserFAQs that don't match a certain criteria. Ideally, it would looks something like...

Sql Server modify select

I'm pretty sure there is no way, but i'm putting this out there for those expert beyond my knowledge. What i am looking to do is to somehow alter SELECT statements before they are executed, at the database level. For a seriously pared-down example, i'd like to do something like the following... when someone executes the following SQL ...

Sprites in directx10 and texture filtering

Hi Is it possible to set different texture filtering when working with sprites? ...

How do I filter data without losing shape?

Is there a filtering algorithm that converges at some shape? My problem is that I am filtering a two dimensional graph, and applying filtering repeatedly. I'm down-sampling data and re-sampling it using gaussian filters (footprints), but the graph changes its shape with every subsequent filtering. What I need is to achieve some final sha...

How does Stackoverflow's homepage filtering work?

How does Stackoverflow's homepage filtering work? I believe the questions that appear on the homepage are specifically related to your interests, which are indicated by the tags that you look at, question ans answer. Does anyone know the name of the algorithm/technique or have some basic details (nothing that violated their IP) about h...

How to Filter variables for SP, to return only one value from many in SQL View

Hi , In a SQL View, I have 5 boolean variables and one int variable. out of 5 boolean variables only one variable will be true for a single data row, Task Type boolVerySmall Datestart TagName Architecture Setup -- Doc Code True 1900-01-01 00:00:00.000 Design_09 idProject boolsmall boolM...

Pythonic way to get some rows of a matrix

I was thinking about a code that I wrote a few years ago in Python, at some point it had to get just some elements, by index, of a list of lists. I remember I did something like this: def getRows(m, row_indices): tmp = [] for i in row_indices: tmp.append(m[i]) return tmp Now that I've learnt a little bit more sinc...

Gridview Filtering built in function?

Does .NET have some type of built in function that allows filtering on Gridviews? I've always programmed my filters by using a datasource generated by a dynamic stored procedure that takes parameters. But in order to keep the filter row always present I have to place the code to create the controls that are used to filter in three differ...

filtering infrastructure for fluentnhibernate over 3 tiers application

hello, i have a 3 tier app that needs to be capable of doing data filtering according to user requests, i'm working with fluentnhibernate to manage the crud of my entities. my question is how can i pass the filter from the client to the server (over wcf). the filter classes of fn is not serializable. any solution? ...

SharePoint LDAP filtering of People Picker users

Hi On my WSS server I have run the following stsadm command to filter the people picker results: stsadm.exe -o setproperty -url http://myserver -pn "peoplepicker-searchadcu stomfilter" -pv "(memberOf=CN=SharePoint,OU=AccessGroups,DC=contosio,DC=local)" My WSS sites are all used by different groups of users. Whenever I create a new si...

How to filter search results in this example

I have a product table that contains thousands of products. Some products are available in different colors. But when somebody searches for example 'mp3 player' i dont want to show him every color, instead just the player with the best selling color. Her is the table layout (simplified): ID | PRODUCT_NAME | COLOR | SALE_COUNT ====...

How to do pagination and filtering in MVC applications

I am using the example martijn Boland's to page. The url of my app changes when I click on the page numbers: http://localhost:1202/Issue?page=6 So far so good. The problem is when I add a dropdownlist that submits on change, I can not page as well as filter. If I change my dropdown, I should pass the projectId in the querysting, my...

ELMAH filtering not working

I have the following settings in my web.config: <configSections> <sectionGroup name="elmah"> <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/> <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" /> <section name="errorMail...