I'm not sure if I'm missing something regarding cursors and datagrids...

I'm trying to implement a 'find within datagrid functionality' generically.  I 
had things working doing it the hard way of just looping through the 
arraycollection and doing a compare for each cell within the datagrid.  Then I 
decided to implement the same thing using cursors, and the fun began.  In some 
cases I'm able to find the object, in others I crash out.

I've defined a cursor = dataGrid.dataProvider.createCursor();
looping through with the cursors works, and I'm able to get the correct item 
for cursor.current.  I fail with Error #1009 
at internal::findItem() ... ListCollectionView.as:954when I do:
dataGrid.selectedItem = cursor.current;

Am I missing something?  I didn't think I needed to sort anything if I wasn't 
using any of the find methods on the cursor, but it seems like behind the 
scenes flex is doing find and failing.  At this point I may just go back to 
looping through arraycollection, but to me, it seems far less elegant than the 
cursor solution.

Thanks,

j





Reply via email to