I am using labelFunction in a DataGridColumn to return a string based
on the value of myColumn
I want to set the background property of myColumn but I dont know how
to get a refrence to the index position of the item object myColumn. I
have tried numerous variations on item.index without success, can
anyone help?


function getColumn(item:Object):String 
{
        if (item.myColumn=='this') {
        myGrid.setPropertiesAt(item.index, {backgroundColor:0xB0BBD2});
        return 'Total';
        }
        else if (item.myColumn=='that') {
        return item.otherColumn;
        }
        else
        {
        return item.myColumn;
        }
}




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to