1 Reply Latest reply on Dec 16, 2007 12:40 PM by keith_pd

    Can't select DataGrid Rows

    keith_pd Level 1
      Hi and Thanks in advance
      I'm completely stumped on this one.
      I did search the forums but I couldn't find the same problem.

      Using Flex Builder 2.0.1
      Mac 10.5.1
      AMFPHP

      I've built two components each with it's own datagrid
      the first I can scroll and select rows with no problem:

      <mx:VBox id="adminhome" top="0" right="0" left="0" horizontalAlign="left" verticalAlign="top" bottom="0">
      <mx:HBox id="WorkhistoryNav" width="100%"
      backgroundColor="#43738b" color="#ffffff" backgroundAlpha="1.0" height="23"
      horizontalAlign="left">
      <mx:LinkBar
      id="adminNav"
      horizontalCenter="14" rollOverColor="#ABABAB"
      itemClick="changeAdminView(event)" width="100%" height="23">
      <mx:dataProvider>
      <mx:String>Add New Member</mx:String>
      <mx:String>Delete Member</mx:String>
      <mx:String>Suspend Member</mx:String>
      </mx:dataProvider>
      </mx:LinkBar>
      </mx:HBox>
      <mx:DataGrid id="user_grid"
      dataProvider="{user_dp}"
      selectable="true" selectedIndex="0"
      right="0" top="25" bottom="0"
      left="0"
      width="100%" height="100%">
      <mx:columns>
      <mx:DataGridColumn headerText="First Name"
      dataField="firstname" textAlign="left"/>
      <mx:DataGridColumn headerText="Last Name" dataField="lastname" textAlign="left"/>
      <mx:DataGridColumn headerText="Login Name" dataField="usr_login" textAlign="left"/>
      <mx:DataGridColumn headerText="Password" dataField="password" textAlign="left"/>
      <mx:DataGridColumn headerText="Phone" dataField="phone" textAlign="left"/>
      <mx:DataGridColumn headerText="Email" dataField="email" textAlign="left"/>
      </mx:columns>
      </mx:DataGrid>

      </mx:VBox>

      Can't select any row but the last on this one??

      <mx:DataGrid id="grd_workHistory"
      dataProvider="{wrkHistory_dp}"
      selectable="true" selectedIndex="0" right="0" top="25" bottom="0" left="0">
      <mx:columns>
      <mx:DataGridColumn headerText="From" dataField="from" textAlign="left"/>
      <mx:DataGridColumn headerText="To" dataField="to" textAlign="left"/>
      <mx:DataGridColumn headerText="Company" dataField="company" textAlign="left"/>
      <mx:DataGridColumn headerText="Position" dataField="position" textAlign="left"/>
      <mx:DataGridColumn headerText="Supervisor" dataField="manager" textAlign="left"/>
      <mx:DataGridColumn headerText="Supervisor Title" dataField="mngrtitle" textAlign="left"/>
      <mx:DataGridColumn headerText="Supervisor Phone" dataField="mngrphone" textAlign="left"/>
      <mx:DataGridColumn headerText="Start Salary" dataField="startsalary" textAlign="left"/>
      <mx:DataGridColumn headerText="End Salary" dataField="endsalary" textAlign="left"/>
      <mx:DataGridColumn headerText="Responsibilities" dataField="responsibilities" textAlign="left"/>
      <mx:DataGridColumn headerText="Reason for leaving" dataField="reason" textAlign="left"/>
      </mx:columns>
      </mx:DataGrid>

      Hopefully you see something that I don't

      Thank you

      Keith