Formatting cell appearance

By default, the VSFlexGrid control will align strings to the left and numbers and dates to the right of each column. You may override this default using the ColAlignment() property.

For the ultimate in cell formatting control, use the Cell property. This property allows you to set or retrieve every aspect of a range's formatting. You may set a cell's contents, font, back color, fore color, alignment, and picture, among other options.

If you need even more control over the appearance of the cells, use the OwnerDraw property and the DrawCell event to paint the cell yourself, using Windows API calls.