[flexcoders] Re: How to remove the current sort on a Datagrid

2007-11-30 Thread ruidsoares
Hi again! I feel so stupid! The obvious answer to my problem was to have the id column on the datagrid with the visible property set to false! Arrgh! Anyway, your help was very valuable. Thanks Rui Duarte Silva --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

[flexcoders] Re: How to remove the current sort on a Datagrid

2007-11-30 Thread ruidsoares
That's exactly the problem. I don't want the id column to be visible as it was only created because of the editedItemPosition not going to the right item when the grid was sorted. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Assuming there is a column with

[flexcoders] Re: How to remove the current sort on a Datagrid

2007-11-29 Thread ruidsoares
Hi! Thanks for the fast reply. This is the code that is executed whenever the user presses the add user button: private function addUser():void { //Re-sort on the id field var reSort:Sort = new Sort(); reSort.fields = [new SortField(id)]; this.userList.sort =

RE: [flexcoders] Re: How to remove the current sort on a Datagrid

2007-11-29 Thread Alex Harui
Assuming there is a column with dataField=id, the arrow should move. If you can fit the rest of the test case on a few screens of code, I can try it out and see From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ruidsoares Sent: Thursday,