Lets say your RPC is returning ArrayCollection containing objects and each
object has got properties prop1, prop2 and prop3

your code should be similar to the below one
dataGrid.dataProvider = arrayCollection;
dataColumn1.dataField = "prop1";
dataColumn2.dataField = "prop2";


On Tue, Feb 26, 2008 at 3:30 PM, Sujit Reddy <[EMAIL PROTECTED]> wrote:

> value of the dataField should be the name of the property from which the
> value has to be retrieved.
> for example, RPC is returning object with three properties named prop1,
> prop2 and prop3.
> then the dataField should be set to the name of the property like
> dataField = "prop1";
>
> Hoe this helps.
> Regards,
> Sujit Reddy G
>
>
> On Tue, Feb 26, 2008 at 1:38 PM, Tom Preet <[EMAIL PROTECTED]> wrote:
>
> >
> > Hi All,
> >
> > In my app am using datagrid with three columns. to fill the data in to
> > datagrid, am
> > getting the data using remote object and stored  data into a
> > Arraycollection in mxml.
> >
> > when am displaying the data into a grid it was displaying(repeating same
> > data) in all the three
> > columns.
> > how to display the data within the respective fields.
> >
> > I have used column1.dataField="{lis.getItemIndex(1).toString()}" like
> > this to
> > display the content of field in first column but it was not displaying
> > anything.
> > can anyone help me how to achieve this.
> >
> >
> > --tomt
> >  
> >
>
>
>
> --
> Regards,
> Sujit Reddy. G




-- 
Regards,
Sujit Reddy. G

Reply via email to