Forum
Sign Up
× DataGrid for Qt.C++

Is there a way to merge cells?

3 months 1 week ago #1 by leon
Is there a way to merge cells?
Like QTableView's setSpan.

I am using QtitanDataGrid 5.22.

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago - 3 months 1 week ago #2 by Developer Machines
In the current version of the grid, you can do something similar if you use the BandedTableView. This approach is well demonstrated in the example of Grid_BandedTableView.exe

Qtitan::GridBandedTableColumn* column = (Qtitan::GridBandedTableColumn *)view->getColumnByModelColumnName("History");
column->setEditorType(GridEditor::Memo);
Qtitan::GridMemoEditorRepository* memoEditor = (Qtitan::GridMemoEditorRepository *)column->editorRepository();
Q_UNUSED(memoEditor);
column->setBandIndex(engineeringBand->index());
column->setRowSpan(3);
Last edit: 3 months 1 week ago by Developer Machines.

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #3 by leon
Replied by leon on topic Is there a way to merge cells?
Thank you for your reply.

The effect I want is shown below:

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #4 by Developer Machines
Unfortunately, this feature is not currently supported. It has long been in our plans, but I find it difficult now to say in which version it will appear and when.
The following user(s) said Thank You: leon

Please Log in or Create an account to join the conversation.

More
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer MachinesEduard
Time to create page: 0.138 seconds

Developer Newsletter

Join our Developer Machines newsletter to get informed on all the latest releases of the commercial components for Qt.C++, Delphi FireMonkey, updates and general knowledges.

Quick Support

Should you need any additional information about our products or licensing, please contact us at the following email addresses:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

Get in Touch

If you would like to purchase our products or services, but don’t know how to do it the right way, please feel free to contact us:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.( any questions related to our products or services )
  • This email address is being protected from spambots. You need JavaScript enabled to view it.( questions related to licensing )