QtitanDataGridModel-view DataGrid component with rich functionality for Qt.C++ and PySideQtitanRibbonReplicates Microsoft RibbonUI interface for Qt.C++ and PySideQtitanNavigationDesignUIReplicates Microsoft Navigation Design interface for Qt.C++ and PySideQtitanChartCharts and Diagrams component for Qt.C++ and PySideQtitanDockingDockable Panels and Tool Bars for Qt.C++ and PySideQtitanFastInfosetXML Compressed format FastInfoset implementation for Qt.C++ and PySideRoadmap Development 2023
FireDataGridPowerful, modern, fast, DB-Aware Grid for Delphi-FiremonkeyFireDockingDelphi IDE/Visual Studio implementation of dock panels for Delphi-Firemonkey
Hi,
i have a QSqlTablelModel setup with OnManualSubmit. I want to change Data and remove rows from more than one model and submit it together in one transaction.
If i remove a row with model->removeRow(), the removes row stays visible in the grid. In QTableView the is an Asterics that shows that the row will be deleted. In QtitanGrid i found nothing like that.
Is there a way to show the deleted-flag, or better a way to hide the row without submit it back to the database?
At the moment such rows are not highlighted for the user. They are always empty. Is implied that you need to make the submit manually so that the changes take effect. In what cases, you may need to ignore the model submission procedure and display such a rows with the * sign?
If QTableView knows how to identify such rows, we can do the same in theory.
I have a header-table with more than one position-tables. if the user press the cancel-button, than i want to revert all changes in all tables. if i make a manual submit before to remove the deleted rows from the view, the revert will not work anymore.
So i think i have to work with temporary tables where i can make the submit.
If you know how QtableView identify the deleted rows, i'd suggest to apply the filter to the gird to hide that rows. Please see CustomFilter.exe demo example. You can try to assign filter conndition to:
view->modelController()->filter();
or
view->modelController()->relationFilter(); //In this case the filter panel will be ignored.