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