2 Replies Latest reply on Jan 8, 2007 1:06 PM by 187_2007

    Datagrid control

    187_2007 Level 1
      I have this:

      <mx:DataGrid id="StructGrid" dataProvider="{ArrayofStructs}" x="322" y="293" itemClick="doProdUpdate()">
      <mx:DataGridColumn headerText="Name" dataField="NAME" id="_name"/>
      <mx:DataGridColumn headerText="Age" dataField="AGE" id="_age"/>
      <mx:DataGridColumn headerText="Last Name" dataField="LASTNAME" id="lastname"/>

      As you can see the DataProvider populated the DataGrid. What would the correct syntex be if I wanted to grab and display the detail of one row? For example:

      NAME.text or

      What is the correct syntex here?