Home › Forums › WinForms controls › Xceed Grid for WinForms › Heading Alignment
Can anyone tell me how to set the alignment of a column’s heading to say Centred, but have a different alignment for the actual cells of that column, say left aligned?
I know it must be possible, but i’m damned if i can find out how!
I’m coming from a TrueDBGrid background, so having to get my head around some of the new ways of doing things using Xceed’s grid, which is must say is much more feature packed than TrueDbGrid.
Imported from legacy forums. Posted by BlueHair (had 1862 views)
Each cell has a HorizontalAlignment and VerticalAlignment properties which can be used to change the default alignment of a cell’s content. For example, to change the alignment of the second cell in a ColumnManagerRow:
columnManagerRow1.Cells[ 1 ].HorizontalAlignment = HorizontalAlignment.Right;
Imported from legacy forums. Posted by Jenny [Xceed] (had 2944 views)