Have you tried datagrid.selectable = false (which should be the default setting for the DG) or are you trying to make a specific cell or set of cells non-selectable while keeping the rest of the grid selectable?
If you are trying to be specific about which cells, what action are you trying to perform?
I'll take a look at your blog.
What i'm trying to do is present a list of items...some of which have already been "used" for other purposes and those that are "used" i want to color a different color and make it so that the user cannot select them for use. It's easy to filter them so that they are not viewable but i have a radio button which essentially says "show all records" and "show available records". I'm trying to get the "show all records" to work the way i envision.
The one way i *think* i can do it is to create a handler for the datagrid's "?selected" event and essentially everytime they select something do a datagrid.selecteditems fetch to see what indicees were selected, clear the ones i don't want selected, and write it back to the datagrid.
My next task...which maybe you can point me in the right direction is, how can i highlight these "used" rows? Is this where i need to use an itemrenderer? (I've seen reference to this topic but not yet read about it).
I think this is where you need an item renderer. The
following will help you get started:
I recently did something similar where two
columns of the datagrid were checkboxes
indicating accept or reject. The data in the
row was then colored green or red - very
thanks Chris...i'll read through that and give it a try. I appreciate the pointer.
It is probably best to custom highlight rows via custom item renderers. There are examples on my blog of various custom renderers. You do have the option of overriding the drawHighlightIndicator method as well.
Flex SDK Developer
Adobe Systems Inc.