Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1935
How to add column headers to a grid
posted

I am not using one of the out-of-box datasource helpers.  I am implementing various methods on the IGGridViewDataSource and IGGridViewDelegate protocols.

I assumed that this would be the method I need to implement to return the column header...

-(IGGridViewHeaderCell *) gridView:(IGGridView *)gridView headerCellAt:(NSInteger)column

... and I've done so, but the method never gets called.

So my grid is showing all the data, but no column headers.

Any ideas what I'm doing wrong?

Thanks


Parents
No Data
Reply
  • 40030
    Verified Answer
    Offline posted

    Hi David, 

    Looks like a bug in the grid. 

    Its expecting you to implement the following method as well. 

    -(NSString *)gridView:(IGGridView *)gridView titleForHeaderInColumn:(NSInteger)column

    This shouldn't be a requirement though, so I'll fix this for the next SR.  But in the meantime, just implement this method, and you can just return nil. 

    Thanks for reporting this!

    -SteveZ

Children