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
Appropriate place to set column width
posted

Where is the best place to set the width of cells in columns of the gridview.

Would it be here in the cell creation method... 

-(IGGridViewCell *)gridView:(IGGridView *)gridView cellAt:(IGCellPath *)path

*** EDIT ***

Actually, I just reviewed the documentation, it looks like it's supposed to be here

- (IGColumnWidth *)gridView:(IGGridView *)gridView widthForColumnAtIndex:(NSInteger)column

Parents
No Data
Reply
  • 40030
    Verified Answer
    Offline posted

    Hi David

    Yup you got it

    if every column will be the same width you can also just set the column width property on the grid

    or if you use the IGGridViewDataSourceHelper classes you can create columns and specify the width of each column there

    -SteveZ

Children
No Data