StyleGrid REALbasic Plugin |

# StyleGridColumn.CellFactoryID Property

This can be used to control how new cells in the given column will be born.

CellFactoryID as Integer {Read and Write}

#### Remarks

The possible cell factory constants are:
0: Normal Cell created with the attributes on the Grid's DefaultCell.
1: ExtendedCell created with most of the attributes of the Grid's DefaultCell.
2: ProgressBarCell
3: CheckBoxCell
4: SmallCheckBoxCell<
5: PopUpMenu/I>
If you have TypeLib and REALbasic 5.5 or later then the constants above have the same values as the following REALbasic constants:
CellFactoryType.Normal
CellFactoryType.Extended
CellFactoryType.ProgressBar
CellFactoryType.CheckBox
CellFactoryType.SmallCheckBox
CellFactoryType.PopUpMenu
Notes:
This has no effect on existing cells, it will only control the birth of new cells in the given column.
Normally this would be set in the ControlCreated event before any cells are put in the Grid.
Example for REALbasic 5.5 or later:

Sub ControlCreated()
// Let the first column have checkboxes
me.Column(1).CellFactoryID = CellFactoryType.SmallCheckBox
End Sub

#### See Also

StyleGridColumn Class