Off the top of my head, you could schedule a function that sets selectedItem to null either with callLater or a timer, and cancel that somehow on itemClick?
Kinda hackish though, there's probably a nicer way :) -Josh On Thu, Jul 31, 2008 at 9:27 AM, whatabrain <[EMAIL PROTECTED]> wrote: > I have an AdvancedDataGrid which has a few rows, and lots of empty > space. When I click on the empty space, I want all the rows to be > deselected. How do I detect that I've clicked in an empty space? > > I tried using grid.getObjectsUnderPoint() in the "click" event, but the > results aren't very useful. I guess I could depend on the fact that > there are always more than three objects when I click on a real row, > and exactly three when I click on empty space, but that seems like a > bad thing to depend on. Who knows what future versions of Flex will add > to the list? > > There must be a better way! > > Thanks. > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]