listen for the change event instead.  click is thrown when the user mouse
clicks anywhere on a datagrid, change is thrown only when the selectedItem
changes by clicking a different row in the datagrid.

DK

On Thu, Aug 14, 2008 at 9:16 AM, Graham Pearson <[EMAIL PROTECTED]>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> While working with the flex datagrid click event, I ran into an issue
> which I am needeing assistance with. This grid lists the Businesses
> within a radius and has columns being displayed of Business Name,
> Address, City, State and ZipCode. The column which is not displayed is
> the Record ID from the database. In my actionscript, when a user clicks
> on a row, I pass the RecordID to a Popup Titlewindow which will display
> the entire record for this dealer. My Issue is, if the user clicks on a
> column header, it produces and error message because the DealerID does
> not exist. I have tried to check for this DealerID == null or via
> DealerID.length == 0 however when I do this, I get a debugging error
> message of Error #1009: Cannot access a property or method of a null
> object reference.
>
> My thought is if the user would click on a column header, then I would
> sort the returned recordset based on the column which they clicked on.
> Any Ideas?
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (MingW32)
> Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIpDA93GqPAgBSy90RAksNAJ9/hMktw2yjfsY+FHpSY1HkenRccgCfagDD
> tnGxJMpwPVWCAi0ZKi12DLY=
> =/8pp
> -----END PGP SIGNATURE-----
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5444
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to