Search code examples
c++wxwidgets

Is it possible to make a wxDataViewCtrl auto scroll to the bottom?


I am using wxDataViewCtrl to display a list of items, when I add an item to the control, is it possible to make wxDataViewCtrl auto scroll to the bottom?


Solution

  • Not automatically but you just need to call wxDataViewCtrl::EnsureVisible() to do it.