1 Reply Latest reply on Feb 9, 2007 9:06 AM by michael_ramirez44

    Display rowindex in datagrid


      Just started with Flex, so at the risk of asking a ridiculously simple question: how do I display the rowindex in a datagrid?
      My datagrid is filled using a dataProvider that points to an xml object. All fields in the object get filled in the various columns in the grid. However, there are no row numbers in the xml object, so I wanted to dynamically fill those using a labelFunction or something like it. No luck however.

      To make things more clear, this is what I want:

      colA | colB | colC
      1 | valueX | value1
      2 | valueY | value2
      3 | valueZ | value3

      ColA is not present in the xml object, so how do I create it?