[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Infragistic UltraGrid (Win) Set Filter in Code

Posted on 2009-03-30
1
Medium Priority
?
5,515 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

1

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

650 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