1 Reply Latest reply on Nov 27, 2006 11:55 AM by ntsiii

    Databinding and Datagrid

    izdabye
      Hi..

      Im fairly new to flex so please be gentle.

      I created a database and wrote a CF file to create an XML file to populate the datagrid in my Flex app.
      my datagrid populates great but when I click on a item in the grid I cant get the details to populat in the details section

      Ex Datagrid

      FIRST NAME LAST NAME
      Craig Wiseman



      Output
      Craig Wiseman 123 Main St Brantford Ontario


      So if I click on the name, the output should appear

      in my grid I have
      <mx:DataGrid id="dgPost" dataProvider="{feedRequest.lastResult.rss.channel.item}"
      <mx:DataGridColumn headerText="firstName" dataField="firstName" />
      <mx:DataGridColumn headerText="lastName" dataField="lastName" />


      then for the output I have
      <mx:Label text="{dgPost.firstName}" bottom="50" left="300" />
      <mx:Label text="{dgPost.lastName}" bottom="50" left="350" />
      <mx:Label text="{dgPost.address}" bottom="50" left="400" />


      Thanks