The following example sets the text alignment for each cell to left, center using the constant setting.
Sub Form1_Load () ModHFGrid1.CellAlignment =flexAlignLeftCenter End Sub