CellTypes Property
Applies To: Grid
Description
This property specifies the type of each cell in a Grid object. It is a matrix whose elements are origin-1 indices into other property arrays (FCol, BCol, CellFonts and Input).
For example, if CellTypes[1;1] is 3, the first cell in the Grid is displayed using the foreground colour specified by the 3rd element of FCol, the background colour specified by the 3rd element of BCol, and so forth. Note however that scalar property arrays are extended if necessary. Therefore if you require 5 different foreground colours but only one background colour, BCol need specify only a single colour.
You can dynamically change a single element of CellTypes using the SetCellType method.