Welcome to the Xceed Community | Help
Community Search  
More Search Options

trapping event of grouping/sorting by column headers?

Sort Posts: Previous Next
  •  01-16-2006, 10:29 AM Post no. 1644

    trapping event of grouping/sorting by column headers?

    hello,

    I am interested in measuring the time and performance of the grouping and sorting functionality of the Xceed Grid. I need a way to trap the event of dragging and dropping the column header to group by that field, as well as clicking on the column header to sort that field. i Have about 9k records to test and its important for me to know the amount of time it takes with a large dataset.

    Does anyone have any suggestions or methods or functions I can look at in order to do this. Thanks.

  •  04-13-2006, 4:19 PM Post no. 1645 in reply to 1644

    Re: trapping event of grouping/sorting by column headers?

    There is no built-in event that will allow you to do this. The measure the grouping performance, you can simply change the GroupTemplate to the grouping you want and then call UpdateGrouping. It is during the UpdateGrouping that the Grid will update itself to the new "grouping".

    As for the sorting, you can change the SortedColumns, doing this will trigger the grid to "re-sort" itself.
    Mathieu Drimonakos
    -Technical Designer-
  •  02-04-2011, 4:39 AM Post no. 29741 in reply to 1645

    Re: trapping event of grouping/sorting by column headers?

    Hi,

       I am trying to handle column drop event on group control. Is there any workaround to handle it?? i tried PreviewMouseLeftButton event but it didnt worked.

    sugges me a way to handle the grouping event.

    Regards,

    Raju

  •  02-18-2011, 1:54 PM Post no. 29904 in reply to 29741

    Re: trapping event of grouping/sorting by column headers?


    You have to use the HeaderRows collection to get to the GroupManagerRow (which is the row used to manage the group).  You can do this in the GroupAdded event also.

    e.g.:

        private void gridControl1_GroupAdded(object sender, GroupAddedEventArgs e)
        {
       
        }

    Best Regards,

    Michel Dahdah
    Technical Support
    Xceed Software inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.