We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Programmatically Collapse Groups in Pivot Grid


I am unable to figure out how to collapse a group in a pivot Grid.

I have tried pivotgrid.TableControl.CollapseAll() but that doesn't work.

Any help would be appreciated.


3 Replies

VK Vinish Kumar K Syncfusion Team June 24, 2013 03:59 AM UTC

Hi Chris,


Thanks for your interest in Syncfusion products.



Collapse all records

You can collapse aall groups of pivot grid using below code.





Please let me know if this helps to you, else please let me know with any reproducible sample. We will provide solution for this issue.




CB Chris Bishop July 15, 2013 08:06 PM UTC

Thank You for your reply.

I tried the code you posted but it does nothing.

I used it in the Pivot Grid demo for  I created a button, dropped in the code and nothing.

Do you have an example of this code working?

VK Vinish Kumar K Syncfusion Team July 24, 2013 04:36 AM UTC

Hi Chris,


Sorry for the inconvenience caused.


We have analyzed the reported issue in our end along with your query, In our end also the provided CollapseAllGroup doesn’t works, So we have reported this issue to our development team. So We request you to please create incident for this query with your first update. We will provide the timeline for this issue if its occur in our source.  



Vinish K

Live Chat Icon For mobile
Up arrow icon