Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 458959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:43:29+00:00 2026-05-12T22:43:29+00:00

I am using Infragistics 2009 vol 1. My UltraGrid is bound to a BindingList

  • 0

I am using Infragistics 2009 vol 1.

My UltraGrid is bound to a BindingList of business objects “A” having themself a BindingList property of business objects “B”. It results in having two bands: one named “BindingList`1”, the other one “ListOfB” thanks to the currency manager.

I would like to refresh the GroupBy sort of the grid whenever a change is performed on the child band through the child business object and INotifyPropertyChange.

If I group by a property in the child band which is a boolean (let’s say “Active”) and I subscribe to the event ListChanged on the bindinglist datasource with this event handler:

void Grid_ListChanged(object sender, ListChangedEventArgs e)
{
    if (e.ListChangedType == ListChangedType.ItemChanged)
    {
        string columnKey = e.PropertyDescriptor.Name;
        if (e.PropertyDescriptor.PropertyType.Name == "BindingList`1")
        {
            ultraGrid.DisplayLayout.Bands[columnKey].SortedColumns.RefreshSort(true);
        }
        else
        {
            UltraGridBand band = ultraGrid.DisplayLayout.Bands[0];
            UltraGridColumn gc = band.Columns[columnKey];

            if (gc.IsGroupByColumn || gc.SortIndicator != SortIndicator.None)
            {
                band.SortedColumns.RefreshSort(true);
            }
            ColumnFilter cf = band.ColumnFilters[columnKey];
            if (cf.FilterConditions.Count > 0)
            {
                ultraGrid.DisplayLayout.RefreshFilters();
            }
        }
    }
}

the band.SortedColumns.RefreshSort(true) is called but It gives unpredictable results in the groupby area when the property Active is changed in the child band:

if one object out of three actives becomes inactive it goes from:

  • Active : True (3 items)

To:

  • Active : False (3 items)

Instead of (which is the case when I drag the column back and forth to the group by area)

  • Active : False (1 item)

  • Active : True (2 items)

Am I doing something wrong?

Is there a way to restore the expanded state of the rows when performing a RefreshSort(true); ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:43:30+00:00Added an answer on May 12, 2026 at 10:43 pm

    Sounds like a bug to me – you should file one with Infragistics.

    As to a workaround – this is not a nice solution and I haven’t tested it but you could always try saving the sort-by (group) columns to a temp store, RefreshSort() on the band, then re-apply the sort-by (gorup) columns, and sort again?

    ie. Remove group-by, then re-apply.

    Nasty, but it might get you out of a bind.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using an Infragistics XamDataGrid for my grid. It is bound to an
I am using Infragistics UltraGrid with datasouce Windows Bindingsouce. On change, I provide datasouce
Using the Infragistics UltraGrid (e.g. myGrid ), I want to: Hook an event that
Infragistics Grid disappears when grid parent element is expanded/collapsed using JavaScript style.display property. When
I'm having a problem when using Infragistics styles, the problem is related to the
I am using Infragistics UltraGrid in a Windows Forms application. I need an event
I need to create a winforms grid with 3 levels, using infragistics ultragrid. Level
I am using an Infragistics UltraGrid in a WinForms application. Which event is raised
Using Infragistics UltraGrid in WinForms in C#: I am conditionally changing the color of
We're using Infragistics grid (most probably, we'll have 8.2 version at the end) and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.