Home Forums WinForms controls Xceed Grid for WinForms columnManagerRow.Cells Alignment Reply To: columnManagerRow.Cells Alignment

Xceed Support
Member
Post count: 5658

I tried reproducing the error and I was not able.

I was able to change the alignment of the cells from the columnManagerRow with 2 different approachs.

First, through the columnManagerRow that is created when you drop the gridControl on the Form:

<code>
columnManagerRow1.Cells(5).HorizontalAlignment = Xceed.Grid.HorizontalAlignment.Right
columnManagerRow1.Cells(4).HorizontalAlignment = Xceed.Grid.HorizontalAlignment.Left
</code>

Second, through the FixedHeaderRows collection, the columnManagerRow being the second FixedHeaderRow:

<code>
DirectCast(gridControl1.FixedHeaderRows(1), ColumnManagerRow).Cells(5).HorizontalAlignment = Xceed.Grid.HorizontalAlignment.Right
DirectCast(gridControl1.FixedHeaderRows(1), ColumnManagerRow).Cells(4).HorizontalAlignment = Xceed.Grid.HorizontalAlignment.Left
</code>

Imported from legacy forums. Posted by CharlesB (had 3176 views)