This question is locked. New answers and comments are not allowed.
I need a way to expand and collapse all rows in a grid. What I would like to have is a icon in the header and when collapsed all rows should be hidden and when expanded all rows should be visible. I'm also attaching an image for reference.