Hi Tom,
   I think you can use "runtime datagrid styles" to accomplish that. The technique is one of Advanced DataGrid... described in october- december ( some of it may be not published yet ) issues of Web 2.0 magazine/chapter 11 of our Flex 2 book . The running samples from the articles are available here http://samples.faratasystems.com/AdvancedDataGrid/index.html- along with source (right mouse on the index page only).
You basically add "selection" column to each row and use the backgroundColor method to "indexOf" current column name  in selection one.
 
Hope this helps,
Anatole Tartakovsky
FarataSystems.com

 
On 10/30/06, Dirk Eismann <[EMAIL PROTECTED]> wrote:

Him Tom,

as long as your item renderer implements the IDropInListItemRenderer
interface you can get the columnIndex and rowIndex from the listData
property. If an item renderer lives inside a DataGrid, listData is of
type mx.controls.dataGridClasses.DataGridListData - so everything should
be there already.

Dirk.

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Tom Chiverton
> Sent: Monday, October 30, 2006 11:39 AM
> To: [email protected]
> Subject: Re: [Junk E-Mail - MED] Re: [flexcoders] Re: A
> DataGrid with selectable *cells*
>

> On Thursday 26 October 2006 19:49, Shannon Hicks wrote:
> > Yeah, this is a top candidate for a common custom component
> we'll all
> > need
>
> Here is the low down so far: It has to subclass DataGrid
> rather than be a cell renderer or be based on DataGridColumn
> because neither of these know which row and col. they are in.
>
> So far I've overriden drawSelectionIndicator() and
> drawHightlightIndicator(), along with a private method to
> figure out which one of listItems the mouse is over, and set a color.
> This gives 'cell under mouse highlight', but it doesn't stay
> right when clicked (I think the the underlying row is being
> messed with), so I'm digging into more of DataGrid's
> selection mechanism as we speak which I hope doesn't mean
> ending up overriding drawItem() from ListBase.
>
> Ho hum :-)
>
> --
> Tom Chiverton
> Helping to dynamically supply transparent convergence
>


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to