public void MoveRight(int i) { //int i = leftGrid.CurrentRowIndex; if (i >= 0) { ArrayList a = new ArrayList(rightItems); a.Add(leftItems[i]); rightItems = (DataContent[])a.ToArray(itemType); a = new ArrayList(leftItems); a.RemoveAt(i); leftItems = (DataContent[])a.ToArray(itemType); WFSUtils.FillDataGrid(leftGrid, leftPropertyList, leftItems); WFSUtils.FillDataGrid(rightGrid, rightPropertyList, rightItems); if (i < this.leftItems.Length) { this.leftGrid.UnSelect(WFSUtils.GetCurrentRowIndex(leftGrid)); this.leftGrid.Select(i); this.leftGrid.CurrentRowIndex = i; } else if (i > 0) { this.leftGrid.UnSelect(WFSUtils.GetCurrentRowIndex(leftGrid)); this.leftGrid.Select(i - 1); this.leftGrid.CurrentRowIndex = i - 1; } } }
public void MoveRight() { MoveRight(WFSUtils.GetCurrentRowIndex(leftGrid)); }
public void MoveLeft() { MoveLeft(WFSUtils.GetCurrentRowIndex(rightGrid)); }