Solved

Infragistic UltraGrid (Win) Set Filter in Code

Posted on 2009-03-30
1
4,923 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WPF - Tooltips for ComboBox items 5 27
Open a word document 23 33
Tool Box 2 32
Server Error 11 47
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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 synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

943 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

Need Help in Real-Time?

Connect with top rated Experts

1 Experts available now in Live!

Get 1:1 Help Now