This sample allows you to display an event log that will show the order of the various TableControl events.
Features:
Ability to trace the different types of events such as cell events, key events and mouse events
Contains the class EngineEventTracer used to hook up events on-demand and unhook events
EngineEventTracer class that contains the HookEvents method for each event category
UnHookEvents method that is called when tracing needs to be disabled
Event log in the output window
Output window is a ListBox control
AppendOuput method of event tracer that sends results to the ListBox control for display
Here is the code to hook up an event:
this.groupingEngine.CategorizedRecords+=new GroupEventHandler(groupingEngine_CategorizedRecords);
Here is the code to unhook the event:
this.groupingEngine.CategorizedRecords -=new GroupEventHandler(groupingEngine_CategorizedRecords);
Here is the code to add an event handler:
private void groupingEngine_CategorizedRecords(object sender, GroupEventArgs e) { AppendOutput("CategorizedRecords",e); }