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" <[EMAIL PROTECTED]> 
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
>


Reply via email to