private void refresh_note_indexes() { // so that the UI indexes (first column) are recomputed - in case of an insert for ( int idx = 0; idx < notesCtrl.GetItemCount(); ++idx) notesCtrl.RefreshObject( notesCtrl.GetItem(idx).RowObject ); }