def OnFieldsUp(self, event):
    selection = self.fieldsGrid.SelectedRows
    if ((len(selection) == 1) and (selection[0] > 0)):
        self._swapRows(selection[0], (selection[0] - 1))
        self.fieldsGrid.ClearSelection()
        self.fieldsGrid.SelectRow((selection[0] - 1))
def OnFieldsUp(self, event):
    selection = self.fieldsGrid.SelectedRows
    if ((len(selection) == 1) and (selection[0] > 0)):
        self._swapRows(selection[0], (selection[0] - 1))
        self.fieldsGrid.ClearSelection()
        self.fieldsGrid.SelectRow((selection[0] - 1))