Hi Zied,

You might have missed something... Its ok refer the example in this link,
if any doubt pls try to give a simplified code, it will help us to help
http://blog.flexexamples.com/2008/04/09/creating-a-custom-sort-on-a-datagrid-control-in-flex/



On Thu, Aug 20, 2009 at 6:32 PM, zied Majdoub <[email protected]> wrote:

>
> Hi,
> I have a dataGrid with a dataProvider an XML file filled with Ids. I
> added in the column a labelFunction in order to return a name related
> to the id.
> But when i sort the column, it's sorting by the id value, not the
> label. When I use a sortCompareFunction, I can't look for the name,
> because I only have obj1:XML and obj2:XML but no information about
> which column I am sorting.
>
> Please help me find a way to do the correct sort.
>
> Thanks,
> Zied
>
> >
>


-- 
Regards,
Preetham Hegde
www.dizzianer.com

_______________________________________________
If you only have a hammer, you tend to see every problem as a nail.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to