Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
Wingrid group by reset
posted

I have a wingrid and i am using the default drag column over to group by and it works perfectly fine.

I want to clear the wingrid including the selected group by option for my next bind to wingrid. Can you please let me know how this could be done.

In other words i want to initialize or reset the wingrid with no group by value.

Newbee to infragistics any help will be appreciated.

Thanks in advance

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    Since you want to do this when re-binding the grid, you could clear the SortedColumns collection in the InitializeLayout event:

    private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
    {
        e.Layout.Bands[0].SortedColumns.Clear();
    }

    -Matt

Children