1 Reply Latest reply on Nov 3, 2010 12:16 PM by Flex harUI

    Center the Header and the data from the DataGrid.

    giba_f Level 1

      Hello everyone!

      I'm trying to do two things at the same datagrid:
      1) centralize the header;
      2) align the data, the left (characters), right (numeric) and center (dates)

      I saw the textAlign = "center / left / right" of the DataGridColumn does this but also saw that he does both pros data, as for the header, but in this case, I want the header always centralized.

      But how to do this example below?

      +----------------+------------|-------------+
      |      Name      |    Date    |    Value    |  => Header = all center
      +----------------+------------|-------------+
      |Name 1111       |  11/11/11  |      1111.11|

      |Name 2222222    |  22/22/22  |    222222.22|

      |Name 333333333  |  33/33/33  | 333333333.33|

      +----------------+------------+-------------+

      Left                Center            Right

       

      Thanks !