TitleAlignment Property

             

Specifies the alignment of the header row of the grid. Available at design time.

Settings

The settings for TitleAlignment are:

Setting Description
0 – Left Specifies that the data contained in the cells of the grid should be aligned to the left.
1 – Right Specifies that the data contained in the cells of the grid should be aligned to the right.
2 – Center Specifies that the data contained in the cells of the grid should be aligned in the center.

Remarks

This property is mapped to the Alignment box on the Format Tab of the Grid Properties dialog box when the Header row option is selected.

The TitleAlignment property sets the value of the ALIGN attribute of the <TH> tag.