"data" in any given renderer refers to the entire rows contents.

If you have, say, a checkbox in another column of the same row - then you
have ready access to the option through the 'data' (read row) information
for that row. Getting the other column to update - your other column
renderer must actually change it's underlying data - you'll have to
explicitly 'set' the new value in the 'data'. Then shoot off an event (data
change is fired most of the time by itself, but not always - go figure).

You should at a minimum have a dataChange event handler on your renderer, so
you can decide if an appropriate action whould be taken.

On Wed, Feb 24, 2010 at 7:15 AM, Vin <[email protected]> wrote:

> You can override the set data method of the itemrenderer and there
> depending on your condition you can give dataptovider for that particular
> cell.you can access other columns data using "data" property
>
> Thanks
> Vin
>
>
>
>
>
>
>
> On Feb 24, 2010, at 9:52 AM, [email protected] wrote:
>
> Hi,
>
> I have a combobox item editor in a datagrid.  Is it possible to dynamically
> change the data provider for the combobox for a 'cell' (not the column)
> based on the value of a cell in another column in the same row?  I know it
> is possible to combine the two columns and create an item editor for the
> combined column. But there are a few columns (and they are not necessarily
> adjacent to each other) that are related to a single column and combining
> them all into one does not seem to be ideal. Thanks.
>
> Susan
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in
> the subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by http://www.fusionlink.com
> -------------------------------------------------------------
>
>
>
>
>
>
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in
> the subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by http://www.fusionlink.com
> -------------------------------------------------------------
>
>
>


-- 
Darin Kohles
RIA Developer

Reply via email to