Forum
Sign Up
× DataGrid for Qt.C++

Clear Grouping

7 years 7 months ago #1 by Jennifer
Clear Grouping was created by Jennifer
Hello,

I want to clear grouping programatically using context menu actions.
I have added following code on my context menu action:
m_grid->view<Qtitan::GridTableView>()->modelController()->clearGrouping();
But this is just removing grouping but the GroupBox on top of column header is still showing the selected columns. I have tried various ways to update the groupBox header. Please let me know how to update the Gropbox. PLease find attached image.
Attachments:

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

More
7 years 7 months ago #2 by Jennifer
Replied by Jennifer on topic Clear Grouping
Hi,

Any updates?

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

More
7 years 7 months ago #3 by Developer Machines
Replied by Developer Machines on topic Clear Grouping
It is not a good idea to use modelController directly. Try this:
m_grid->view<Qtitan::GridTableView>()->clearGrouping();

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 Machines
Time to create page: 0.123 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:

  • support@devmachines.com

  • license@devmachines.com

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:

  • support@devmachines.com( any questions related to our products or services )
  • license@devmachines.com( questions related to licensing )