Solved

Infragistic UltraGrid (Win) Set Filter in Code

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

708 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

13 Experts available now in Live!

Get 1:1 Help Now