ColAlignment Property (MSHFlexGrid) Example

The following code sets the alignment of the third column to "right, center" using the constant value.

Note   If you are using the MSFlexGrid, substitute "MSHFlexGrid1" with "MSFlexGrid1."

Sub Form1_Load ()
   MSHFlexGrid1.ColAlignment(3) =flexAlignRightCenter
End Sub