Conforms to NSObject
Declared in IGGridViewDataSourceHelper.h

Overview

The IGGridViewDataSourceHelperEditingDelegate protocol provides a hook into editing.

You can use these hooks to modify the editor thats used, or even update the value in the underlying data object.

Instance Methods

dataSourceHelper:cellEnteringEditMode:usingValue:withEditor:forColumn:

Invoked when a cell is about to enter edit mode.

- (void)dataSourceHelper:(IGGridViewDataSourceHelper *)dsh cellEnteringEditMode:(IGGridViewCell *)cell usingValue:(id)value withEditor:(UIView *)editor forColumn:(IGGridViewColumnDefinition *)col

Parameters

dsh

The IGGridViewDataSourceHelper entering edit mode.

cell

The IGGridViewCell entering edit mode.

value

The value that will be put in the editor. (In the case of an IGGridViewColumn, the value will be a string)

editor

The editor that will be displayed.

col

The column entering edit mode.

Discussion

You can use this method to update the display data, or make changes to the editor.

Declared In

IGGridViewDataSourceHelper.h

dataSourceHelper:cellExitingEditMode:usingValue:withEditor:forColumn:

Invoked when a cell is about to exit edit mode.

- (id)dataSourceHelper:(IGGridViewDataSourceHelper *)dsh cellExitingEditMode:(IGGridViewCell *)cell usingValue:(id)value withEditor:(UIView *)editor forColumn:(IGGridViewColumnDefinition *)col

Parameters

dsh

The IGGridViewDataSourceHelper exiting edit mode.

cell

The IGGridViewCell exiting edit mode.

value

The value from the editor.

editor

The editor that was used for editing.

col

The column exiting edit mode.

Return Value

The value that will be set on the underlying data object. If you want to use the editor’s value, just return value.

Discussion

You can use this method to do validation, or update the value that will be set on the cell.

Declared In

IGGridViewDataSourceHelper.h