 
             // start somewhere
             if (!_editedItemPosition)
-            {
                 _editedItemPosition = { rowIndex: 0, columnIndex: 0 };
 
-                for (;
-                     _editedItemPosition.columnIndex != _columns.length;
-                     _editedItemPosition.columnIndex++)
-                {
-                    // If the editedItemPosition is valid, focus it,
-                    // otherwise find one.
-                    if (_columns[_editedItemPosition.columnIndex].editable &&
-                        _columns[_editedItemPosition.columnIndex].visible)
-                    {
-                        var row:Array = listItems[_editedItemPosition.rowIndex];
-                        if (row && row[_editedItemPosition.columnIndex])
-                        {
-                            foundOne = true;
-                            break;
-                        }
-                    }
-                }
-            }
+            for (;
+                 _editedItemPosition.columnIndex != _columns.length;
+                 _editedItemPosition.columnIndex++)
+	            {
+	                // If the editedItemPosition is valid, focus it,
+	                // otherwise find one.
+	                if (_columns[_editedItemPosition.columnIndex].editable &&
+	                    _columns[_editedItemPosition.columnIndex].visible)
+	                {
+	                    var row:Array = listItems[_editedItemPosition.rowIndex];
+	                    if (row && row[_editedItemPosition.columnIndex])
+	                    {
+	                        foundOne = true;
+	                        break;
+	                    }
+	                }
+	            }
 
             if (foundOne)
             {


import mx.collections.CursorBookmark;
import mx.collections.ICollectionView;
import mx.collections.IViewCursor;
import mx.collections.ItemResponder;
import mx.collections.ISort;
import mx.collections.ISortField;
import mx.collections.Sort;
import mx.collections.SortField;
import mx.collections.errors.ItemPendingError;

        if (bEditedItemPositionChanged)
        {
            bEditedItemPositionChanged = false;
			// don't do this if mouse is down on an item
			// on mouse up, we'll let the edit session logic
			// request a new position
			if (!lastItemDown)
            	commitEditedItemPosition(_proposedEditedItemPosition);
            _proposedEditedItemPosition = undefined;
            itemsSizeChanged = false;
        }
