; public var indicesObj:Vector.; // selectedCellInfo holder, used as verification public var selectedCellInfo:ArrayList=new ArrayList(); public var newIndex:int; public var tmp:int; public var totalRowCount:int; public var totalColumnCount:int; public var newItem:Object={index:123, firstName: "lee", lastName: "Li", food: "bread", drink: "coke"}; //debugging method public function displaySelectedCellIndices(v:Vector.):void { var n:int=v.length; var msg:String; for (var i:int=0;i, columnIndex:int, columnCount:int):void { var len:int=rows.length; var rowIndex:int; for (var i:int=0;i=FlexGlobals.topLevelApplication.dataGrid.selectedCells; var len2:int=v1.length; var obj:Object; for (var i:int=0;i=FlexGlobals.topLevelApplication.dataGrid.selectedCells; var len2:int=v1.length; if (len2!=len) errMsg+="all cells count is different:"+len2+";passed cell count="+len+"\n"; return verifySelectedCells(tobeCheckedCells); } //v: is the selectedCells return, cells: is the expected selected cells info public function verifyAllCellsResult(v:Vector.,cells:ArrayList):String { var n:int=v.length; var errMsg:String=""; if (n!=cells.length) { errMsg+="length not equal"; return errMsg; } var arr:Array=new Array(); for (var i:int=0;i