MouseDown event & GridGroupingControl

Hello, I''m having issues with the MouseDown event not being fired in the GridGroupingControl. I''m wondering what I could be doing wrong. I attached a sample. In the sample I have a GridControl & and GridGroupingControl. The MouseDown event gets called in GridControl but not GridGroupingControl. Haven''t done anything special with this, simply added the handlers for the event using the designer so not sure why it''s not working. The grid version is 2.0.3.9....

test9.zip

1 Reply

AD Administrator Syncfusion Team November 16, 2005 11:40 AM UTC

The GridGroupingControl may contain many nested controls, and so is actually a wrapper class around GridControlBase objects. It is these objects you need to interact with to handle the events. In later releases (but probably not in 2.0.x), there are grid.tableControlXXXXXX events to help with this. In 2.0.x, you probably have to subscribe directly through the GridControlBase. So, try handling: this.gridGroupingControl1.TableControl.MouseDown += new MouseEventHandler(TableControl_MouseDown);

Loader.
Up arrow icon