Dim view As GridView = gridView1view.GridControl.Focus()Dim index As Integer = view.FocusedRowHandleIf index <= 0 ThenReturnEnd IfDim row1 As DataRow = view.GetDataRow(index)Dim row2 As DataRow = view.GetDataRow(index - 1)Dim val1 As Object = row1(OrderFieldName)Dim val2 As Object = row2(OrderFieldName)row1(OrderFieldName) = val2row2(OrderFieldName) = val1view.FocusedRowHandle = index - 1