Solved

Infragistic UltraGrid (Win) Set Filter in Code

Posted on 2009-03-30
1
5,074 Views
Last Modified: 2013-11-15
Hi,

I'm using a Infragistic Win UltraGrid. I filled in a few comboboxes with some filter criteria.
Now I want to apply the filtercriteria through the column filter (Filtering is enabled).
How can I do this?
0
Comment
Question by:ACAE
1 Comment
 

Accepted Solution

by:
ACAE earned 0 total points
ID: 24019464
I already found the solution, see code below.
private void cmbPlanDep_SelectedIndexChanged(object sender, EventArgs e)
        {
            ugvShipmentMovements.Rows.ColumnFilters["Plan Department"].ClearFilterConditions(); 
            if (cmbPlanDep.SelectedIndex != 0)
            {
                // Create FilterCondition
                FilterCondition myConditions = new FilterCondition();
                myConditions.CompareValue = cmbPlanDep.SelectedItem.ToString();
                myConditions.ComparisionOperator = FilterComparisionOperator.Equals;
                // Adding a Column Filter to the ColumnFilters Collection returns a ColumnFilter.
                ugvShipmentMovements.Rows.ColumnFilters["Plan Department"].FilterConditions.Add(myConditions);
            }
        }

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question