This means that the data passed into the comparator to figure out how to
do the sort (the field value of the first item in the DP) is null or not
a simple type.  So what is the value of dp[0].armyname?  If it's null or
if it is an object where you then used a labelFunction you may need to
specify a custom compare function for the column so that we can
accurately sort it.

Matt

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of pixelgeek
Sent: Friday, February 24, 2006 9:58 PM
To: [email protected]
Subject: [flexcoders] Comparator error in datagrid

I am getting the following error when I try to sort a column in a
datagrid

"Cannot determine comparator for SortField with name 'armyname' "

The other three columns sort correctly. The name of the column is
'armyname' as is the data field in the datasource.

Anyone have any idea why this would cause an error?

TIA 





--
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



 




--
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/
 


Reply via email to