Thank you very much. This is exactly what I wanted and I did not know you can access it using the means of associate array. The thing I knew is that datagrid is the collection of object. So do you mean any object can be looked as a associate array? Flex is really great.
Thanks, Fudong --- In [email protected], "Michael Labriola" <[EMAIL PROTECTED]> wrote: > > Fudong, > > I think you are looking for something like this: > > dataGrid.dataProvider.getItemAt(0)[ dataGrid.columns[1].dataField ] > = "04/01/09"; > > Basically, you can access object properties as though they were an > associative array. > > > This is one way to handle it. You could also use a cursor or the > setItemAt() method. > > --Mike > > > > > > > --- In [email protected], "fudongli" <fudongli@> > wrote: > > > > Guys, > > > > I used 'this' to replace 'eval'. Please enlighten me on > following > > issue: > > For: > > datagrid.dataProvider.getItemAt(0).schdule_name = "04/01/09" > > I want to be done like this: > > > > this("datagrid.dataProvider.getItemAt(0)." + dataGrid.columns > [1]) > > = "04/01/09" > > > > It gave me an error message. After research, I found out it > seems > > you can only put this around an object not a property. Is it > right? If > > yes, how I can solve this issue? I used eval in javascript before, > > seems it can be used anywhere. This is different. > > > > Thanks in advance, > > > > Fudong > > >
