Home Forums WinForms controls Xceed Grid for WinForms Center numeric in cell

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

    Hi

    I need to create a column, to center the numeric number as follows

    _________________________________________________
    |__Account Name__|_____________Balance____________|

    ABC                                          350.50

    DEF                                      15,500.50

    GHI                                           480.60

     

    Column should be center align and number should be right align

     Please help me to do this task

    Thanks

     

    Imported from legacy forums. Posted by Tharaka (had 639 views)

    User (Old forums)
    Member
    Post count: 23064

    This is not possible, because to right align numbers that are to be centered means you need to know the largest number, center it, and use that number to right align all other numbers on it (which are then not centered anymore).  This is not how the grid works.  When you center a column, each cell will center its content independently of any other cell.

     

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

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