         var g:Graphics = background.graphics;
         g.clear();
 
-        if(columnIndex >= lockedColumnCount && 
+        if (columnIndex >= lockedColumnCount && 
            columnIndex < lockedColumnCount + horizontalScrollPosition)
             return;
 

                    ObjectUtil.getClassInfo(iterator.current,
                                            ["uid", "mx_internal_uid"]);

                if(info)
                    cols = info.properties;
            }


                // this is an old recordset - use its columns
                var n:int = cols.length;
                var colName:Object;
				if  (n == 0) {
					col = new AdvancedDataGridColumn();
					newCols.push(col);
				}
				else {
	                for (var i:int = 0; i < n; i++)
	                {
	                    colName = cols[i];
	                    if (colName is QName)
	                        colName = QName(colName).localName;
	                    col = new AdvancedDataGridColumn();
	                    col.dataField = String(colName);
	                    newCols.push(col);
	                }
				}
            }
            columns = newCols;
            generatedColumns = true;
