Reuse the same code from the generic and native GTK and OS X implementations of wxDataViewCtrl instead of triplicating it. This fixes a small discrepancy between the wxOSX version, which didn't see the model pointer correctly in the generated event, and all the others, but mainly paves way for future improvements.