I can select a row using this particular code
Glib::RefPtr<Gtk::TreeSelection> refTreeSelection = imgTreeView->get_selection();
Gtk::TreeModel::Row rs = imgTreeViewPointer->children()[selectedIndex];
if (rs)
{
refTreeSelection->select(rs);
}
Glib::RefPtr<Gtk::TreeModel> tpModel = imgTreeView->get_model();
Gtk::TreeModel::Children children = tpModel->children();
Gtk::TreeModel::Children::iterator itn_start,itn_end;
itn_start = children.begin();
itn_end = children.end();
imgTreeView->scroll_to_row(tpModel->get_path(itn_start));
imgTreeView->scroll_to_row(tpModel->get_path(itn_end));
How can I remove a selected row?
I found this How to remove/erase rows from a selection of a tree view but don’t seem to understand how to use it.
I found this old blog Re: how to remove selected rowS from a ListStore? but don’t seem to understand it as well
I can’t find any example to remove a row here as well, Programming with gtkmm 3
Can anyone help me figure out how to do this?