3 Replies Latest reply on Jan 29, 2010 11:34 AM by msakrejda

    Add categories to DataGrid header

    msakrejda Level 4

      Is there a simple way to add categories to the DataGrid header? Basically, instead of just a single row with headers, I want an additional row that sits above that row and describes sections of the grid (rather than individual columns). E.g., in html, I could do something like this:

       

        <table>
          <tr><th colspan="2">Name</th><th colspan="2">Data</th></tr>
          <tr><th>first</th><th>last</th><th>age</th><th>gender</th></tr>
          <tr><td>john</td><td>doe</td><td>26</td><td>male</td></tr>
        </table>

       

      Is there a reasonable way to do something like that in Flex? I've looked at Alex Harui's DataGrid footer, but after playing around with it a bit, it doesn't seem that it would be easily adapated.