I have a GridRecordNavigationControl that contains a derived class of GDBG called CommonDataBoundGrid (extra methods, properties, etc.). In the PaneCreated event, I notice that the new pane is created as a GDBG. Is there any way that I can cause the new pane to be an instance of my class (CommonDataBoundGrid)?
ADAdministrator Syncfusion Team June 6, 2004 03:18 AM
If you are using a derived grid, you need to override CreateNewControl in the derived class to create a new instance of your derived grid. Otherwise, when the grids are created for new panes, then instances of GridDataBoundGrid are created, and not instances of your derived grid.
Here is a long forum thread that eventually gets around to this problem toward its end. (It discusses using a GridnControl in a splitter but the same type of comments apply to GridDataBoundGrid in a GridRecordNavigationControl).