4 Replies Latest reply on Apr 19, 2010 2:57 PM by TransoniqHacker

    Keeping selected Item after refresh

    TransoniqHacker Level 1

      I have a datagrid that is being populated by a coldfusion CFC.Clicking on a row in the datagrid queries the database (using the cfc) and returns the full data to a form for editing. After editing the record, the user saves the data back to the database using the cfc. Then the data grid is refreshed.


      Here is the question. If my datagrid is sorted on column 3 and the user changes a value on the record that would put the record in a different place in the sort, how can I still show that selected row even though it has been re-sorted. (I think that makes sense?)


      I can reselect the same record if it stays at the same index, but in this case, the record is not at the same index.


      Can someone help?