?
Solved

Infragistic UltraGrid (Win) Set Filter in Code

Posted on 2009-03-30
1
Medium Priority
?
5,373 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

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…
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 …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses

752 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