VSFlexGrid Introduction > Formatting Cells > Formatting cell contents |
The ColFormat() property controls how cell contents are formatted for display. It takes as a parameter a format string similar to the one used by Visual Basic's Format function. For example, you may set ColFormat() to "#.###,##", "Currency", or "Long Date". This property does not affect the cell's contents, only the way it is displayed.
You may also use check boxes to display boolean values. To do this, set the ColDataType() property to flexDTBoolean. The grid will automatically display check boxes and handle them if the grid is editable.