Since you were so nice last time, I thought I might take another chance with another question.
I have an Accordion. In index 0 there is a datagrid that shows the records of the members and index 1 is a form. When you click on an item in the datagrid it throws you to the form with all the fields populated for the person you want to edit. Upon clicking save it saves all the information to the database correctly. Here comes my problem... I want it to refresh the data in the data grid and still be highlighted on the person you were editing (there are 321 members, I don't want the users to have to scroll through the list everytime to get to the last place they were). One tutorial said I could just recall the service and I then I made a function that looks up the last selected user and finds their index and tells the datagrid to scroll to that index. The problem with this method, is that the datagrid takes so long to refresh that the selected user has been selected again, and then when it finally finishes the refresh it overwrites the selected and starts back at the top of the grid with noone selected. I did check to make sure that the correct index is being found and that the scroll to and select work. It just isn't timing correctly. Instead of call refresh, refresh finish, then call select method and select, it's happening like call refresh, call select method and select, the it actually refreshes. Then I tried another method. I was thinking maybe it just takes to long to refresh data from a server and you are supposed to update both the server and the array collection at the same time, that this was would just be faster and maybe better all around. With the examples of this, I also don't have to worry about reselecting the last person I was on, because it just worked that way. Problem with this method is that the fields that are null are being fill in as blank in the array (database is still fine). I know this because I have a field in the table set up to show LastName (MaidenName) where the (MaidenName) only shows up if the field is not null but after update the field is showing up like LastName (). I have it set up so that I'm submitting the data to the array the same way as the database. I thought this would be find since the nulls are handled correctly in the database, but not so. Am I just trying to do this all the wrong way? Thank you, Sarah
