> Okay, when you said "color", I think this is what you were looking for: > > color="{dataObject.totalsRow ? 'red' : 'white'}" > No it is the background I want changed. However the above example with color also causes the results to go so something is awry
My cell renderer(careerRowRenderer) is this <mx:VBox xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" backgroundColor="{dataObject.totalsRow ? 'red' : 'blue'}"/> and a relevant column in the datagrid <mx:DataGridColumn headerText="Year" columnName="YEAR" width="60" cellRenderer="careerRowRenderer"/> I just get a red bar on the total row, blue on the others - no Year showing any more. However, when I click on the cell I get [object Object]. Removing the cellRenderer property shows the data again The datagrid is withing a vbox(to show title) which itself is in an accordion - if that has any relevance > > Make the totals row the first one in the data provider, and set the > DataGrid's lockedRowCount to 1. > I reset the totalsRow to row one and applied the lockedRowCount="1" but on scrolling down the row is not locked Incidentally any reason why you cannot set lockedRowCount="{dp.length}". I tried that and it gave a line above the last (total) row but removed the scroll bar Andrew -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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/