A slight mistake in my reply, the line should have been: rowData = dgDataProvider[evt.rowIndex];
But this line is relevant for an ArrayCollection. You will need different syntax to access data in XML, depending on how deep it is nested. Andrew --- In [email protected], "greenfishinwater" <[EMAIL PROTECTED]> wrote: > > Kapil, > > You have to do the work yourself. > > In the datagrid use itemClick="rowSelected(event)" > > Then in ActionScript > > private function rowSelected(evt:ListEvent):void { > rowData = dgDataProvider(evt.rowIndex); > > Now rowData contains the data from the datagrid on the row selected by > the user, you can now pass this data to the Form and use databinding > to display the data. > > That is a simple approach, but there will be a lot more code to > implement it. > > Andrew > > --- In [email protected], kapil b <kapil_b15@> wrote: > > > > Hi All, > > > > I am new to flex... in my sample application i m retrieving the data > from the xml and displaying it in the grid. > > > > On clicking on particular row, the row data should get populated in > a form (containing text boxs) so that i can delete and update the > contents and save back to database. > > > > I am using java remote object to save/update the data on submitting > the form > > > > Problem : Row Data doesn't get populated in the form on clicking > the row in grid. > > > > Please give me approach to solve this problem > > > > Thanks, > > Kapil > > > > > > > > > > > > Save all your chat conversations. Find them online at > http://in.messenger.yahoo.com/webmessengerpromo.php > > >

