FlexGrid Class Reference

Inherits from XuniView : UIView
Conforms to UIGestureRecognizerDelegate
UIPickerViewDataSource
UIPickerViewDelegate
UITextFieldDelegate
Declared in FlexGrid.h

Overview

The FlexGrid control provides a powerful and flexible way to display and edit data in a tabular format.

– objectAtIndexedSubscript:

Get row accessor for provided row index

- (nonnull GridRowAccessor *)objectAtIndexedSubscript:(int)key

Parameters

key

the specified row.

Return Value

a GridRowAccessor value.

Discussion

Get row accessor for provided row index

Declared In

FlexGrid.h

  flexGridTapped

Occurs when the user taps the control. Event invoked with XuniPointEventArgs

@property XuniEvent<XuniPointEventArgs*> *flexGridTapped

Discussion

Occurs when the user taps the control. Event invoked with XuniPointEventArgs

Declared In

FlexGrid.h

  flexGridRendering

Occurs before the FlexGrid is being rendered. Event invoked with XuniEventArgs

@property XuniEvent<XuniEventArgs*> *flexGridRendering

Discussion

Occurs before the FlexGrid is being rendered. Event invoked with XuniEventArgs

Declared In

FlexGrid.h

  flexGridRendered

Occurs when the FlexGrid has been rendered. Event invoked with XuniEventArgs

@property XuniEvent<XuniEventArgs*> *flexGridRendered

Discussion

Occurs when the FlexGrid has been rendered. Event invoked with XuniEventArgs

Declared In

FlexGrid.h

  flexGridInvalidated

Occurs when the FlexGrid has been invalidated. Event invoked with XuniEventArgs

@property XuniEvent<XuniEventArgs*> *flexGridInvalidated

Discussion

Occurs when the FlexGrid has been invalidated. Event invoked with XuniEventArgs

Declared In

FlexGrid.h

  flexGridDroppedCaches

Occurs after the user applies a sort by tapping a column header. Event invoked with XuniEventArgs

@property XuniEvent<XuniEventArgs*> *flexGridDroppedCaches

Discussion

Occurs after the user applies a sort by tapping a column header. Event invoked with XuniEventArgs

Declared In

FlexGrid.h

  flexGridFormatItem

Occurs when an element representing a cell has been created. Event invoked with GridFormatItemEventArgs

@property XuniEvent<GridFormatItemEventArgs*> *flexGridFormatItem

Discussion

Occurs when an element representing a cell has been created. Event invoked with GridFormatItemEventArgs

Declared In

FlexGrid.h

  flexGridProcessItemOverlay

Occurs when cell overlay must be processed

@property XuniEvent<GridFormatItemEventArgs*> *flexGridProcessItemOverlay

Discussion

Occurs when cell overlay must be processed

Declared In

FlexGrid.h

  flexGridCellTapped

Occurs when FlexGrid cell being tapped. Event invoked with FlexCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridCellTapped

Discussion

Occurs when FlexGrid cell being tapped. Event invoked with FlexCellRangeEventArgs

Declared In

FlexGrid.h

  flexGridCellDoubleTapped

Occurs when FlexGrid cell being double tapped. Event invoked with FlexCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridCellDoubleTapped

Discussion

Occurs when FlexGrid cell being double tapped. Event invoked with FlexCellRangeEventArgs

Declared In

FlexGrid.h

  flexGridBeginningEdit

Occurs before a cell enters edit mode. Event invoked with FlexCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridBeginningEdit

Discussion

Occurs before a cell enters edit mode. Event invoked with FlexCellRangeEventArgs

Declared In

FlexGrid.h

  flexGridCellEditEnding

Occurs when a cell edit is ending. Event invoked with FlexCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridCellEditEnding

Discussion

Occurs when a cell edit is ending. Event invoked with FlexCellRangeEventArgs

Declared In

FlexGrid.h

  flexGridCellEditEnded

Occurs after a cell edit has ended. Event invoked with FlexCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridCellEditEnded

Discussion

Occurs after a cell edit has ended. Event invoked with FlexCellRangeEventArgs

Declared In

FlexGrid.h

  flexGridPrepareCellForEdit

Occurs when an editor cell is created and before it becomes active. Event invoked with FlexCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridPrepareCellForEdit

Discussion

Occurs when an editor cell is created and before it becomes active. Event invoked with FlexCellRangeEventArgs

Declared In

FlexGrid.h

  flexGridItemsSourceChanged

Occurs after the grid has been bound to a new items source. Event invoked with XuniEventArgs

@property XuniEvent<XuniEventArgs*> *flexGridItemsSourceChanged

Discussion

Occurs after the grid has been bound to a new items source. Event invoked with XuniEventArgs

Declared In

FlexGrid.h

  flexGridLoadingRows

Occurs before the grid rows are bound to items in the data source. Event invoked with XuniEventArgs

@property XuniEvent<XuniEventArgs*> *flexGridLoadingRows

Discussion

Occurs before the grid rows are bound to items in the data source. Event invoked with XuniEventArgs

Declared In

FlexGrid.h

  flexGridLoadedRows

Occurs after the grid rows have been bound to items in the data source. Event invoked with XuniEventArgs

@property XuniEvent<XuniEventArgs*> *flexGridLoadedRows

Discussion

Occurs after the grid rows have been bound to items in the data source. Event invoked with XuniEventArgs

Declared In

FlexGrid.h

  flexGridGroupCollapsedChanging

Occurs when a group is about to be expanded or collapsed. Event invoked with FlexCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridGroupCollapsedChanging

Discussion

Occurs when a group is about to be expanded or collapsed. Event invoked with FlexCellRangeEventArgs

Declared In

FlexGrid.h

  flexGridGroupCollapsedChanged

Occurs after a group has been expanded or collapsed. Event invoked with FlexCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridGroupCollapsedChanged

Discussion

Occurs after a group has been expanded or collapsed. Event invoked with FlexCellRangeEventArgs

Declared In

FlexGrid.h

  flexGridScrollPositionChanged

Occurs after the control has scrolled. Event invoked with XuniEventArgs

@property XuniEvent<XuniEventArgs*> *flexGridScrollPositionChanged

Discussion

Occurs after the control has scrolled. Event invoked with XuniEventArgs

Declared In

FlexGrid.h

  flexGridSelectionChanging

Occurs before selection changes. Event invoked with FlexCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridSelectionChanging

Discussion

Occurs before selection changes. Event invoked with FlexCellRangeEventArgs

Declared In

FlexGrid.h

  flexGridSelectionChanged

Occurs after selection changes. Event invoked with FlexCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridSelectionChanged

Discussion

Occurs after selection changes. Event invoked with FlexCellRangeEventArgs

Declared In

FlexGrid.h

  flexGridSortingColumn

Occurs before the user applies a sort by tapping a column header. Event invoked with FlexCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridSortingColumn

Discussion

Occurs before the user applies a sort by tapping a column header. Event invoked with FlexCellRangeEventArgs

Declared In

FlexGrid.h

  flexGridSortedColumn

Occurs after the user applies a sort by tapping a column header. Event invoked with FlexCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridSortedColumn

Discussion

Occurs after the user applies a sort by tapping a column header. Event invoked with FlexCellRangeEventArgs

Declared In

FlexGrid.h

  flexGridAutoGeneratingColumn

Occurs after the user applies a sort by tapping a column header. Event invoked with GridAutoGeneratingColumnEventArgs

@property XuniEvent<GridAutoGeneratingColumnEventArgs*> *flexGridAutoGeneratingColumn

Discussion

Occurs after the user applies a sort by tapping a column header. Event invoked with GridAutoGeneratingColumnEventArgs

Declared In

FlexGrid.h

  flexGridResizedColumn

Occurs after the user applies a sort by tapping a column header. Event invoked with GridResizedColumnEventArgs

@property XuniEvent<GridResizedColumnEventArgs*> *flexGridResizedColumn

Discussion

Occurs after the user applies a sort by tapping a column header. Event invoked with GridResizedColumnEventArgs

Declared In

FlexGrid.h

  flexGridCellLongPressed

Occurs after the user performs a long press gesture. Event invoked with GridCellRangeEventArgs

@property XuniEvent<GridCellRangeEventArgs*> *flexGridCellLongPressed

Discussion

Occurs after the user performs a long press gesture. Event invoked with GridCellRangeEventArgs

Declared In

FlexGrid.h

– dropCaches

Drop the FlexGrid caches

- (void)dropCaches

Discussion

Drop the FlexGrid caches

Declared In

FlexGrid.h

– setCellData:forRow:inColumn:

Set the value stored in a cell in the scrollable area of the grid for unbound mode

- (void)setCellData:(NSObject *_Nullable)data forRow:(int)r inColumn:(int)c

Parameters

data

the value should be stored in a cell in the scrollable area of the grid.

r

the specified row.

c

the specified column.

Discussion

Set the value stored in a cell in the scrollable area of the grid for unbound mode

Declared In

FlexGrid.h

– isScrolledToBottom

Return true if the FlexGrid is scroll to the bottom.

- (bool)isScrolledToBottom

Return Value

return a boolean value.

Discussion

Return true if the FlexGrid is scroll to the bottom.

Declared In

FlexGrid.h

  autoSizeMode

Gets or sets a value that defines the grid’s auto size mode

@property (nonatomic) GridAutoSizeMode autoSizeMode

Discussion

Gets or sets a value that defines the grid’s auto size mode

Declared In

FlexGrid.h

  allowMerging

Gets or sets a value that indicates which parts of the grid support cell merging

@property (nonatomic) GridAllowMerging allowMerging

Discussion

Gets or sets a value that indicates which parts of the grid support cell merging

Declared In

FlexGrid.h

  mergeManager

Gets or sets the grid’s merge manager

@property (nonatomic) GridMergeManager *mergeManager

Discussion

Gets or sets the grid’s merge manager

Declared In

FlexGrid.h

  detailProvider

Gets or sets the grid’s row detail provider

@property (nonatomic) FlexGridDetailProvider *detailProvider

Discussion

Gets or sets the grid’s row detail provider

Declared In

FlexGrid.h

  touchFeedback

Enables or disables Touch Feedback capability

@property IBInspectable BOOL touchFeedback

Discussion

Enables or disables Touch Feedback capability

Declared In

FlexGrid.h

  allowResizing

Gets or sets whether the user can resize the grid’s columns

@property (nonatomic) IBInspectable BOOL allowResizing

Discussion

Gets or sets whether the user can resize the grid’s columns

Declared In

FlexGrid.h

  columnBeingSized

Get the column index of the column currently being resized.

@property (readonly) int columnBeingSized

Discussion

Get the column index of the column currently being resized.

Declared In

FlexGrid.h

  delegate

Gets or sets the delegate for handling notifications.

@property (nonatomic, weak) id<FlexGridDelegate> _Nullable delegate

Discussion

Gets or sets the delegate for handling notifications.

Declared In

FlexGrid.h

  itemsSource

Gets or sets the grid data source for all series.

@property (nonatomic) NSMutableArray *itemsSource

Discussion

Gets or sets the grid data source for all series.

Declared In

FlexGrid.h

  collectionView

Gets the ICollectionView that contains the grid data.

@property (nonatomic) XuniCollectionView *collectionView

Discussion

Gets the ICollectionView that contains the grid data.

Declared In

FlexGrid.h

  headersVisibility

Gets or sets a value that determines whether the row and column headers are visible.

@property (nonatomic) GridHeadersVisibility headersVisibility

Discussion

Gets or sets a value that determines whether the row and column headers are visible.

Declared In

FlexGrid.h

  selectionMode

Gets or sets the current selection mode.

@property (nonatomic) GridSelectionMode selectionMode

Discussion

Gets or sets the current selection mode.

Declared In

FlexGrid.h

  autoGenerateColumns

Gets or sets whether the grid should generate columns automatically based on the itemsSource.

@property (nonatomic) IBInspectable BOOL autoGenerateColumns

Discussion

Gets or sets whether the grid should generate columns automatically based on the itemsSource.

Declared In

FlexGrid.h

  isEnabled

Gets or sets whether interaction is enabled for the user.

@property (nonatomic) IBInspectable BOOL isEnabled

Discussion

Gets or sets whether interaction is enabled for the user.

Declared In

FlexGrid.h

  isReadOnly

Gets or sets whether the user can edit the grid cells by double tapping them.

@property (nonatomic) IBInspectable BOOL isReadOnly

Discussion

Gets or sets whether the user can edit the grid cells by double tapping them.

Declared In

FlexGrid.h

  allowSorting

Gets or sets whether users are allowed to sort columns by clicking the column header cells.

@property (nonatomic) IBInspectable BOOL allowSorting

Discussion

Gets or sets whether users are allowed to sort columns by clicking the column header cells.

Declared In

FlexGrid.h

  showSort

Gets or sets whether the grid should display sort indicators in the column headers.

@property (nonatomic) IBInspectable BOOL showSort

Discussion

Gets or sets whether the grid should display sort indicators in the column headers.

Declared In

FlexGrid.h

  showGroups

Gets or sets whether the grid should insert group rows to delimit data groups.

@property (nonatomic) IBInspectable BOOL showGroups

Discussion

Gets or sets whether the grid should insert group rows to delimit data groups.

Declared In

FlexGrid.h

  cells

Gets the grid panel that contains the data cells.

@property (readonly) GridPanel *cells

Discussion

Gets the grid panel that contains the data cells.

Declared In

FlexGrid.h

  columnHeaders

Gets the grid panel that contains the column header cells.

@property (readonly) GridPanel *columnHeaders

Discussion

Gets the grid panel that contains the column header cells.

Declared In

FlexGrid.h

  rowHeaders

Gets the grid panel that contains the row header cells.

@property (readonly) GridPanel *rowHeaders

Discussion

Gets the grid panel that contains the row header cells.

Declared In

FlexGrid.h

  topLeftCells

Gets the grid panel that contains the top left cells.

@property (readonly) GridPanel *topLeftCells

Discussion

Gets the grid panel that contains the top left cells.

Declared In

FlexGrid.h

  rows

Gets the grid’s rows collection.

@property (readonly) GridRowCollection *rows

Discussion

Gets the grid’s rows collection.

Declared In

FlexGrid.h

  columns

Gets the grid’s columns collection.

@property (readonly) GridColumnCollection *columns

Discussion

Gets the grid’s columns collection.

Declared In

FlexGrid.h

  clientRect

Gets the grid’s client rectangle.

@property (readonly) CGRect clientRect

Discussion

Gets the grid’s client rectangle.

Declared In

FlexGrid.h

  selection

Gets or sets the current selection.

@property (nonatomic) GridCellRange *selection

Discussion

Gets or sets the current selection.

Declared In

FlexGrid.h

  activeEditor

Gets the UIView that represents the currently active cell editor.

@property (nonatomic) UIView *activeEditor

Discussion

Gets the UIView that represents the currently active cell editor.

Declared In

FlexGrid.h

  activeEditorValue

Gets the underlying value of the currently active cell editor.

@property (readonly) NSObject *activeEditorValue

Discussion

Gets the underlying value of the currently active cell editor.

Declared In

FlexGrid.h

  editRange

Gets a cell range that identifies the cell currently being edited.

@property (readonly) GridCellRange *editRange

Discussion

Gets a cell range that identifies the cell currently being edited.

Declared In

FlexGrid.h

  viewRange

Gets the range of cells currently in view.

@property (readonly) GridCellRange *viewRange

Discussion

Gets the range of cells currently in view.

Declared In

FlexGrid.h

  cellFactory

Gets the cell factory that creates and updates cells for this grid.

@property (nonatomic) GridCellFactory *cellFactory

Discussion

Gets the cell factory that creates and updates cells for this grid.

Declared In

FlexGrid.h

  frozenCellsBorderColor

Gets or sets the border stroke color of the control.

@property (nonatomic) IBInspectable UIColor *frozenCellsBorderColor

Discussion

Gets or sets the border stroke color of the control.

Declared In

FlexGrid.h

  textColor

Gets or sets the foreground color for text and symbols on the control.

@property (nonatomic) IBInspectable UIColor *textColor

Discussion

Gets or sets the foreground color for text and symbols on the control.

Declared In

FlexGrid.h

  font

Gets or sets the font for the control.

@property (nonatomic) UIFont *font

Discussion

Gets or sets the font for the control.

Declared In

FlexGrid.h

  alternatingRowBackgroundColor

Gets or sets the color that is used for the background of odd-numbered rows.

@property (nonatomic) IBInspectable UIColor *alternatingRowBackgroundColor

Discussion

Gets or sets the color that is used for the background of odd-numbered rows.

Declared In

FlexGrid.h

  columnHeaderBackgroundColor

Gets or sets the background color of the column headers.

@property (nonatomic) IBInspectable UIColor *columnHeaderBackgroundColor

Discussion

Gets or sets the background color of the column headers.

Declared In

FlexGrid.h

  columnHeaderTextColor

Gets or sets the text color of the column headers.

@property (nonatomic) IBInspectable UIColor *columnHeaderTextColor

Discussion

Gets or sets the text color of the column headers.

Declared In

FlexGrid.h

  columnHeaderFont

Gets or sets the font for the column headers.

@property (nonatomic) UIFont *columnHeaderFont

Discussion

Gets or sets the font for the column headers.

Declared In

FlexGrid.h

  gridLinesColor

Gets or sets the color that is used to paint the lines between cells.

@property (nonatomic) IBInspectable UIColor *gridLinesColor

Discussion

Gets or sets the color that is used to paint the lines between cells.

Declared In

FlexGrid.h

  gridLinesVisibility

Gets or sets a value that indicates which grid lines are visible.

@property (nonatomic) GridLinesVisibility gridLinesVisibility

Discussion

Gets or sets a value that indicates which grid lines are visible.

Declared In

FlexGrid.h

  gridLinesWidth

Gets or sets the gridline thickness.

@property (nonatomic) IBInspectable double gridLinesWidth

Discussion

Gets or sets the gridline thickness.

Declared In

FlexGrid.h

  groupHeaderFormat

Gets or sets the format string used to create the group header content.

@property (nonatomic) IBInspectable NSString *groupHeaderFormat

Discussion

Gets or sets the format string used to create the group header content.

Declared In

FlexGrid.h

  groupRowBackgroundColor

Gets or sets the background color of grouped rows.

@property (nonatomic) IBInspectable UIColor *groupRowBackgroundColor

Discussion

Gets or sets the background color of grouped rows.

Declared In

FlexGrid.h

  groupRowTextColor

Gets or sets the text color of grouped rows.

@property (nonatomic) IBInspectable UIColor *groupRowTextColor

Discussion

Gets or sets the text color of grouped rows.

Declared In

FlexGrid.h

  headerGridLinesColor

Gets or sets the color that is used to paint the lines between row and column header cells.

@property (nonatomic) IBInspectable UIColor *headerGridLinesColor

Discussion

Gets or sets the color that is used to paint the lines between row and column header cells.

Declared In

FlexGrid.h

  headerSelectedBackgroundColor

Gets or sets the background color of the selected column and row headers.

@property (nonatomic) IBInspectable UIColor *headerSelectedBackgroundColor

Discussion

Gets or sets the background color of the selected column and row headers.

Declared In

FlexGrid.h

  headerSelectedTextColor

Gets or sets the text color for selected column and row headers.

@property (nonatomic) IBInspectable UIColor *headerSelectedTextColor

Discussion

Gets or sets the text color for selected column and row headers.

Declared In

FlexGrid.h

  rowHeaderBackgroundColor

Gets or sets the background color of the row headers.

@property (nonatomic) IBInspectable UIColor *rowHeaderBackgroundColor

Discussion

Gets or sets the background color of the row headers.

Declared In

FlexGrid.h

  rowHeaderTextColor

Gets or sets the text color of the row headers.

@property (nonatomic) IBInspectable UIColor *rowHeaderTextColor

Discussion

Gets or sets the text color of the row headers.

Declared In

FlexGrid.h

  rowHeaderFont

Gets or sets the font for the row headers.

@property (nonatomic) UIFont *rowHeaderFont

Discussion

Gets or sets the font for the row headers.

Declared In

FlexGrid.h

  selectionAdornerColor

Gets or sets the color used to fill the selection adorners.

@property (nonatomic) IBInspectable UIColor *selectionAdornerColor

Discussion

Gets or sets the color used to fill the selection adorners.

Declared In

FlexGrid.h

  selectionAdornerBorderColor

Gets or sets the border color of the selection adorners.

@property (nonatomic) IBInspectable UIColor *selectionAdornerBorderColor

Discussion

Gets or sets the border color of the selection adorners.

Declared In

FlexGrid.h

  selectionBackgroundColor

Gets or sets the background color of selected cells.

@property (nonatomic) IBInspectable UIColor *selectionBackgroundColor

Discussion

Gets or sets the background color of selected cells.

Declared In

FlexGrid.h

  selectionTextColor

Gets or sets the text color of selected cells.

@property (nonatomic) IBInspectable UIColor *selectionTextColor

Discussion

Gets or sets the text color of selected cells.

Declared In

FlexGrid.h

  treeIndent

Gets or sets the indent used to offset row groups of different levels.

@property (nonatomic) IBInspectable double treeIndent

Discussion

Gets or sets the indent used to offset row groups of different levels.

Declared In

FlexGrid.h

  isTouching

Gets a value that indicates whether the control is currently handling a touch event.

@property (readonly) BOOL isTouching

Discussion

Gets a value that indicates whether the control is currently handling a touch event.

Declared In

FlexGrid.h

  isUpdating

Gets a value that indicates whether the control is currently being updated.

@property (readonly) BOOL isUpdating

Discussion

Gets a value that indicates whether the control is currently being updated.

Declared In

FlexGrid.h

  scrollPosition

Gets or sets a point that represents the grid’s scroll position.

@property (nonatomic) CGPoint scrollPosition

Discussion

Gets or sets a point that represents the grid’s scroll position.

Declared In

FlexGrid.h

  frozenRows

Gets or sets the number of frozen rows

@property (nonatomic) IBInspectable int frozenRows

Discussion

Gets or sets the number of frozen rows

Declared In

FlexGrid.h

  frozenColumns

Gets or sets the number of frozen columns

@property (nonatomic) IBInspectable int frozenColumns

Discussion

Gets or sets the number of frozen columns

Declared In

FlexGrid.h

  columnHeaderRow

Gets or sets the row that displays column headers

@property (nonatomic) GridRow *columnHeaderRow

Discussion

Gets or sets the row that displays column headers

Declared In

FlexGrid.h

  longPressRecognizer

Gets the long press gesture recognizer to change its params

@property (nonatomic, readonly) UILongPressGestureRecognizer *longPressRecognizer

Discussion

Gets the long press gesture recognizer to change its params

Declared In

FlexGrid.h

  valueFormatter

Gets or sets the value formatter

@property (nonatomic) NSObject<IXuniValueFormatter> *valueFormatter

Discussion

Gets or sets the value formatter

Declared In

FlexGrid.h

– invalidate

Refreshes the grid display.

- (void)invalidate

Discussion

Refreshes the grid display.

Declared In

FlexGrid.h

– getCellRectForRow:inColumn:

Gets the bounds of a cell in viewport coordinates.

- (CGRect)getCellRectForRow:(int)r inColumn:(int)c

Parameters

r

the specified row.

c

the specified column.

Return Value

the bounds of a cell in viewport coordinates.

Discussion

Gets the bounds of a cell in viewport coordinates.

Declared In

FlexGrid.h

– getCellDataForRow:inColumn:formatted:

Gets the value stored in a cell in the scrollable area of the grid.

- (NSObject *_Nullable)getCellDataForRow:(int)r inColumn:(int)c formatted:(BOOL)formatted

Parameters

r

the specified row.

c

the specified column.

formatted

whether is formatted.

Return Value

the value stored in a cell in the scrollable area of the grid.

Discussion

Gets the value stored in a cell in the scrollable area of the grid.

Declared In

FlexGrid.h

– getSelectedStateForRow:inColumn:

Gets a FlexSelectedState value that indicates the selected state of a cell.

- (GridSelectedState)getSelectedStateForRow:(int)r inColumn:(int)c

Parameters

r

the specified row.

c

the specified column.

Return Value

a FlexSelectedState value that indicates the selected state of a cell.

Discussion

Gets a FlexSelectedState value that indicates the selected state of a cell.

Declared In

FlexGrid.h

– startEditing:row:column:

Starts editing a given cell.

- (BOOL)startEditing:(BOOL)fullEdit row:(int)row column:(int)column

Parameters

fullEdit

whether is fully edit.

row

the specified row.

column

the specified column.

Return Value

a boolean value.

Discussion

Starts editing a given cell.

Declared In

FlexGrid.h

– finishEditing:

Commits any pending edits and exits edit mode.

- (BOOL)finishEditing:(BOOL)cancel

Parameters

cancel

whether is cancel.

Return Value

a boolean value.

Discussion

Commits any pending edits and exits edit mode.

Declared In

FlexGrid.h

– collapseGroupsToLevel:

Collapses all the group rows to a given level.

- (void)collapseGroupsToLevel:(int)level

Parameters

level

the specified level.

Discussion

Collapses all the group rows to a given level.

Declared In

FlexGrid.h

– hitTest:

Gets a FlexHitTestInfo object with information about a given point.

- (GridHitTestInfo *_Nonnull)hitTest:(CGPoint)point

Parameters

point

the specified point.

Return Value

a FlexHitTestInfo object with information about a given point.

Discussion

Gets a FlexHitTestInfo object with information about a given point.

Declared In

FlexGrid.h

– scrollIntoView:c:

Scrolls the grid to bring a specific cell into view.

- (bool)scrollIntoView:(int)r c:(int)c

Parameters

r

the specified row.

c

the specified column.

Return Value

true if the grid was scrolled

Discussion

Scrolls the grid to bring a specific cell into view.

Declared In

FlexGrid.h

– selectCellRange:show:

Selects a cell range and optionally scrolls it into view.

- (void)selectCellRange:(GridCellRange *_Nullable)range show:(BOOL)show

Parameters

range

the specified range.

show

whether shows.

Discussion

Selects a cell range and optionally scrolls it into view.

Declared In

FlexGrid.h

– selectCellRange:

Selects a cell range and scrolls it into view.

- (void)selectCellRange:(GridCellRange *_Nullable)range

Parameters

range

the specified range.

Discussion

Selects a cell range and scrolls it into view.

Declared In

FlexGrid.h

– autoSizeColumn:

Resizes a column to fit its contents.

- (void)autoSizeColumn:(int)column

Parameters

column

the specified column.

Discussion

Resizes a column to fit its contents.

Declared In

FlexGrid.h

– autoSizeColumn:header:

Resizes a column to fit its contents.

- (void)autoSizeColumn:(int)column header:(bool)header

Parameters

column

the specified column.

header

whether the column index refers to a regular or a header row column

Discussion

Resizes a column to fit its contents.

Declared In

FlexGrid.h

– autoSizeColumn:header:extra:

Resizes a column to fit its contents.

- (void)autoSizeColumn:(int)column header:(bool)header extra:(int)extra

Parameters

column

the specified column.

header

whether the column index refers to a regular or a header row column

extra

the extra space

Discussion

Resizes a column to fit its contents.

Declared In

FlexGrid.h

– autoSizeColumns

Resizes all columns of a grid to fit their contents.

- (void)autoSizeColumns

Discussion

Resizes all columns of a grid to fit their contents.

Declared In

FlexGrid.h

– autoSizeColumns:to:

Resizes a range of columns to fit their contents.

- (void)autoSizeColumns:(int)first to:(int)last

Parameters

first

the first column.

last

the last column.

Discussion

Resizes a range of columns to fit their contents.

Declared In

FlexGrid.h

– autoSizeColumns:to:header:

Resizes a range of columns to fit their contents.

- (void)autoSizeColumns:(int)first to:(int)last header:(bool)header

Parameters

first

the first column.

last

the last column.

header

whether the column index refers to a regular or a header row column

Discussion

Resizes a range of columns to fit their contents.

Declared In

FlexGrid.h

– autoSizeColumns:to:header:extra:

Resizes a range of columns to fit their contents.

- (void)autoSizeColumns:(int)first to:(int)last header:(bool)header extra:(int)extra

Parameters

first

the first column.

last

the last column.

header

whether the column index refers to a regular or a header row column

extra

the extra space

Discussion

Resizes a range of columns to fit their contents.

Declared In

FlexGrid.h

– autoSizeRow:

Resizes a row to fit its contents.

- (void)autoSizeRow:(int)row

Parameters

row

the specified row.

Discussion

Resizes a row to fit its contents.

Declared In

FlexGrid.h

– autoSizeRow:header:

Resizes a row to fit its contents.

- (void)autoSizeRow:(int)row header:(bool)header

Parameters

row

the specified row.

header

whether the row index refers to a regular or a header column row

Discussion

Resizes a row to fit its contents.

Declared In

FlexGrid.h

– autoSizeRow:header:extra:

Resizes a row to fit its contents.

- (void)autoSizeRow:(int)row header:(bool)header extra:(int)extra

Parameters

row

the specified row.

header

whether the row index refers to a regular or a header column row

extra

the extra space

Discussion

Resizes a row to fit its contents.

Declared In

FlexGrid.h

– autoSizeRows

Resizes all rows of a grid to fit their contents.

- (void)autoSizeRows

Discussion

Resizes all rows of a grid to fit their contents.

Declared In

FlexGrid.h

– autoSizeRows:to:

Resizes a range of rows to fit their contents.

- (void)autoSizeRows:(int)first to:(int)last

Parameters

first

the first row.

last

the last row.

Discussion

Resizes a range of rows to fit their contents.

Declared In

FlexGrid.h

– autoSizeRows:to:header:

Resizes a range of rows to fit their contents.

- (void)autoSizeRows:(int)first to:(int)last header:(bool)header

Parameters

first

the first row.

last

the last row.

header

whether the row index refers to a regular or a header column row

Discussion

Resizes a range of rows to fit their contents.

Declared In

FlexGrid.h

– autoSizeRows:to:header:extra:

Resizes a range of rows to fit their contents.

- (void)autoSizeRows:(int)first to:(int)last header:(bool)header extra:(int)extra

Parameters

first

the first row.

last

the last row.

header

whether the row index refers to a regular or a header column row

extra

the extra space

Discussion

Resizes a range of rows to fit their contents.

Declared In

FlexGrid.h

  originX

Gets or sets the originX of the grid.

@property (readonly) double originX

Discussion

Gets or sets the originX of the grid.

Declared In

FlexGrid.h

  originY

Gets or sets the originY of the grid.

@property (readonly) double originY

Discussion

Gets or sets the originY of the grid.

Declared In

FlexGrid.h

  offset

Gets or sets the offset of the cell.

@property (readonly) CGPoint offset

Discussion

Gets or sets the offset of the cell.

Declared In

FlexGrid.h

– drawRect:

Draw grid in the rect.

- (void)drawRect:(CGRect)rect

Parameters

rect

the specified rect.

Discussion

Draw grid in the rect.

Declared In

FlexGrid.h

– addGroup:withItems:

Add items to the group.

- (void)addGroup:(NSString *_Nonnull)name withItems:(NSMutableArray *_Nonnull)items

Parameters

name

the group name.

items

the specified items.

Discussion

Add items to the group.

Declared In

FlexGrid.h

– removeFromGroup:atIndex:

Remove specified item from the group.

- (void)removeFromGroup:(NSString *_Nonnull)name atIndex:(int)index

Parameters

name

the group name.

index

the item index.

Discussion

Remove specified item from the group.

Declared In

FlexGrid.h

– addItem:

Add item to the collectionView.

- (void)addItem:(NSObject *_Nonnull)item

Parameters

item

the specified item.

Discussion

Add item to the collectionView.

Declared In

FlexGrid.h

– defaultRowSize

Get the default row size.

- (int)defaultRowSize

Return Value

the default row size.

Discussion

Get the default row size.

Declared In

FlexGrid.h

  columnHeaderVisible

Gets or sets column header visibility.

@property (nonatomic) IBInspectable BOOL columnHeaderVisible

Discussion

Gets or sets column header visibility.

Declared In

FlexGrid.h

  rowHeaderVisible

Gets or sets row header visibility.

@property (nonatomic) IBInspectable BOOL rowHeaderVisible

Discussion

Gets or sets row header visibility.

Declared In

FlexGrid.h

  horizontalLinesVisible

Gets or sets horizontal grid lines visibility.

@property (nonatomic) IBInspectable BOOL horizontalLinesVisible

Discussion

Gets or sets horizontal grid lines visibility.

Declared In

FlexGrid.h

  verticalLinesVisible

Gets or sets vertical grid lines visibility.

@property (nonatomic) IBInspectable BOOL verticalLinesVisible

Discussion

Gets or sets vertical grid lines visibility.

Declared In

FlexGrid.h

  fontName

Gets or sets cell font name.

@property (nonatomic) IBInspectable NSString *fontName

Discussion

Gets or sets cell font name.

Declared In

FlexGrid.h

  fontSize

Gets or sets cell font size.

@property (nonatomic) IBInspectable CGFloat fontSize

Discussion

Gets or sets cell font size.

Declared In

FlexGrid.h

  columnHeaderFontName

Gets or sets column header font name.

@property (nonatomic) IBInspectable NSString *columnHeaderFontName

Discussion

Gets or sets column header font name.

Declared In

FlexGrid.h

  columnHeaderFontSize

Gets or sets column header font size.

@property (nonatomic) IBInspectable CGFloat columnHeaderFontSize

Discussion

Gets or sets column header font size.

Declared In

FlexGrid.h

  rowHeaderFontName

Gets or sets row header font name.

@property (nonatomic) IBInspectable NSString *rowHeaderFontName

Discussion

Gets or sets row header font name.

Declared In

FlexGrid.h

  rowHeaderFontSize

Gets or sets row header font size.

@property (nonatomic) IBInspectable CGFloat rowHeaderFontSize

Discussion

Gets or sets row header font size.

Declared In

FlexGrid.h

  defaultContextMenu

Turns context menu on or off

@property (nonatomic) IBInspectable BOOL defaultContextMenu

Discussion

Turns context menu on or off

Declared In

FlexGrid.h