Click or drag to resize

CreateControlArgsSetCellType Method

The extension will typically call this method to support dynamic control types. This method must be used instead of setting CellType and CellTypeAttributes separately because CellTypeAttributes are interpreted entirely differently depending on the CellType setting making it treacherous to change the CellType without ensuring that the CellTypeAttributes is set accordingly. When the CellType is set, but not the BaseControl, the field object will perform normal control creation and configuration for the specified CellTypes. Generally this is the preferred method for implementing dynamic (per-record) control handling and setting BaseControl should be avoided unless a non-standard control or configuration is required.

Namespace:  NetQuarry.Data
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public void SetCellType(
	CellTypes cellType,
	int cellTypeAttrs
)

Parameters

cellType
Type: NetQuarry.DataCellTypes
The CellTypes for the field.
cellTypeAttrs
Type: SystemInt32
The CellTypes dependent CellTypeAttributes for the field.
See Also