Collapse all sections in grid as default


#1

Is it possible to collapse all sections in a grid as the default?


#2

Hi Peter,

Currently, the easiest way to do this would be to iterate through the sections of the grid after you’ve created it, and set each section as collapsed. Something like the following:

for (NSUInteger i = 0; i < _shinobiDataGrid.numberOfSections; ++i) {
    [_shinobiDataGrid setSectionAtIndex:i asCollapsed:YES];
}

I hope this helps, let me know how things go.

Regards,

Dan