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
Hello,
I want to add a new row in grid and show them after added.
my code like these
int xSimGridCtrl::addRow()
{
//bool inc = m_model->insertRow(0);
Qtitan::GridTableView* view = this->view<Qtitan::GridTableView>();
view->beginUpdate();
int modelRowIndex = 0;// view->modelController()->model()->rowCount();
view->modelController()->beginAddRow(modelRowIndex); // To be here to value does not be catched by the filter.
bool suc = view->modelController()->insertModelRow(modelRowIndex);
view->modelController()->endAddRow();
int rowIndex = view->modelController()->ensureVisible(modelRowIndex);
view->endUpdate();
view->requestUpdateLayout();
this->update();
return rowIndex;
}
The new row didn't show immediately . It can be show after I click column for sorting.