Frozen column with section headings issue


#1

I am freezing the first column of my ShinobiDataGrid object, and the grid has sections. The section headings each have a name. The problem is when the first column is frozen, the section heading is showing the section # in the frozen column, and the actual section name spanning the non-frozen columns. How can this be fixed? Even showing nothing in the frozen section would be better than the number.

How can I remove the “Section 0”, “Section 1”, “Section 2” text in the frozen column?


#2

The text for section headers is provided through methods on the SDataGridDataSource protocol - shinobiDataGrid:titleForHeaderInSection: and shinobiDataGrid:titleForFrozenHeaderInSection:

To remove the headings in the frozen cells:

- (NSString *)shinobiDataGrid:(ShinobiDataGrid *)grid titleForFrozenHeaderInSection:(NSInteger)section {
    return @"";
}

You can provide appropriate strings for the non-frozen parts of the section headers with the other method. e.g:

- (NSString *)shinobiDataGrid:(ShinobiDataGrid *)grid titleForHeaderInSection:(NSInteger)section
{
    return [NSString stringWithFormat:@"Section %d", section];
}

Hope that helps

sam