Home Forums WinForms controls Xceed Grid for WinForms Heading Alignment

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13876 |

    Hi,

    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.

    Thanks

    Imported from legacy forums. Posted by BlueHair (had 1862 views)

    Xceed Support
    Member
    Post count: 5658

    Hello

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.