The following code sets the alignment of the third column to right, center using the constant value.
Sub Form1_Load () ModHFGrid1.ColAlignment(3) =flexAlignRightCenter End Sub