NGridColumn Class Reference

Inherits from NSObject
Declared in NGridColumn.h

Overview

The NGridColumn class defines attributes of the grid column.

  parentGrid

Grid that created the column.

@property (readonly) NGridView *parentGrid

Declared In

NGridColumn.h

  key

Key that identifies the column.

@property (readonly) NSInteger key

Declared In

NGridColumn.h

  coordinate

Coordinate of the column.

@property (readonly) NSInteger coordinate

Declared In

NGridColumn.h

  isHeader

A Boolean value that determines whether the column was a header.

@property (readonly) BOOL isHeader

Discussion

Header columns positioned to the left/right of the grid and used to display titles of the rows.

Declared In

NGridColumn.h

– initWithGrid:key:coordinate:andHeaderStatus:

Column object initializer.

- (id)initWithGrid:(NGridView *)gridView key:(NSInteger)key coordinate:(NSInteger)coordinate andHeaderStatus:(BOOL)isHeader

Parameters

gridView

Related grid view.

key

Key of the column.

coordinate

Coordinate of the column.

isHeader

Flag determining if column is a part of header.

Declared In

NGridColumn.h

– cellInRowWithCoordinate:

Returns cell in the current column.

- (NGridCell *)cellInRowWithCoordinate:(NSInteger)rowCoordinate

Parameters

rowCoordinate

Coordinate of the needed row.

Declared In

NGridColumn.h

– xPosition

Returns position of the column in pixels.

- (CGFloat)xPosition

Declared In

NGridColumn.h

– absoluteXPosition

Returns absolute position of the column in pixels. Absolute position is a position of column in case of grid view content offset == {0, 0}.

- (CGFloat)absoluteXPosition

Declared In

NGridColumn.h

– width

Returns width of the column in pixels.

- (CGFloat)width

Declared In

NGridColumn.h

– isFrozen

Returns column freeze state.

- (BOOL)isFrozen

Discussion

If column is frozen then it’s doesn’t hide when you scroll the grid.

Declared In

NGridColumn.h

– isExpanded

Returns a Boolean value indicating whether the column is expanded.

- (BOOL)isExpanded

Declared In

NGridColumn.h