diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 254507c2e6..4465439568 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -3658,6 +3658,8 @@ void wxDataViewCtrl::EnsureVisible( int row, int column ) void wxDataViewCtrl::EnsureVisible( const wxDataViewItem & item, const wxDataViewColumn * column ) { + m_clientArea->RecalculateDisplay(); + int row = m_clientArea->GetRowByItem(item); if( row >= 0 ) {