01-30-2012, 01:33 PM
thanks so much, Gintaras.
I have set up my grid so that the user edits the items in the fields and there is an update of the db3 of the edited row's contents (via a sqlite UPDATE statement) whenever there is case LVN_ENDLABELEDIT. Since only a portion of the database is shown at any one time in the grid (a select on one of the db columns), I don't think I can simply use Sqlite.FromQmGrid after a multiselect delete statement because that will only add the new elements from the grid but won't update pre-existing edited rows or remove deleted rows.
Alternatively, I could just turn off the right click delete menu or the ability for the user to delete/add rows and just control that myself through dlg buttons (add row, delete selected, etc) but I would like to preserve the ability for the user to click on a blank cell and get a new item to start typing into.
S
I have set up my grid so that the user edits the items in the fields and there is an update of the db3 of the edited row's contents (via a sqlite UPDATE statement) whenever there is case LVN_ENDLABELEDIT. Since only a portion of the database is shown at any one time in the grid (a select on one of the db columns), I don't think I can simply use Sqlite.FromQmGrid after a multiselect delete statement because that will only add the new elements from the grid but won't update pre-existing edited rows or remove deleted rows.
Alternatively, I could just turn off the right click delete menu or the ability for the user to delete/add rows and just control that myself through dlg buttons (add row, delete selected, etc) but I would like to preserve the ability for the user to click on a blank cell and get a new item to start typing into.
S