 
 import mx.collections.CursorBookmark;
 import mx.collections.ICollectionView;
+import mx.collections.ISort;
+import mx.collections.ISortField;
 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;


            // 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;
                        }
                    }
                }
            }

            if (foundOne)
            {

        var oldVerticalScrollBar:Object = verticalScrollBar;

        var rowCount:int = listItems.length;
		// check whether the header items are present
		if (rowCount + getHeaderItemsLength() == 0)
        {
            // Get rid of any existing scrollbars.
            if (oldHorizontalScrollBar || oldVerticalScrollBar)
