Home Forums WinForms controls Xceed Grid for WinForms column alignment different on gridcontrol and report

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

    I am developing a timesheet application using the grid. On the report there are columns M,Tu,..,F,Sa,Total, none of which are bound to any data. The problem is that the numbers in ‘Sa’ want to align right and the numbers from Total want to align left. However, I have them set as center in the grid control and that is working correctly within the grid itself.

    Is there a separate place to specify column alignment for reports?

    Imported from legacy forums. Posted by David (had 1878 views)

    User (Old forums)
    Member
    Post count: 23064

    Each element has a report style property for this purpose. For example :

    Xceed.Grid.DataCell cell = (Xceed.Grid.DataCell)row.Cells[0];
    cell.ReportStyle.HorizontalAlignment = Xceed.Grid.HorizontalAlignment.Center;

    Imported from legacy forums. Posted by André (had 2855 views)

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