This sample demonstrates the creation of an event log that will show the order of various grouping events that are fired. You will be able to see different grouping events like Group Added, Group Expanded, Group Collapsed, etc.
The following is an image of the sample.
Here is the code to hook-up an event:
this.groupingEngine.GroupAdded+=new GroupEventHandler(groupingEngine_GroupAdded);
Here is the code to unhook the event:
this.groupingEngine.GroupAdded-=new GroupEventHandler(groupingEngine_GroupAdded);
Here is the code to add an event handler:
private void groupingEngine_GroupAdded(object sender, GroupEventArgs e)
{
AppendOutput("GroupAdded",e);
}
this.eventTracer=new EventTracer(this.groupinggrid.Engine, this.listBox1);
this.eventTracer.HookEvents();