def SetCheckedFields(self, show, group):
    group = [s for s in group if (s in show)]
    current = []
    for row in range(self.fieldsGrid.NumberRows):
        current.append(self.fieldsGrid.GetCellValue(row, 2))
    new = [s for s in current if (s not in show)]
    self._setFieldsList((show + new))
    for row in range(self.fieldsGrid.NumberRows):
        field = self.fieldsGrid.GetCellValue(row, 2)
        self.fieldsGrid.SetCellValue(row, 0, ('1' if (field in show) else ''))
        self.fieldsGrid.SetCellValue(row, 1, ('1' if (field in group) else ''))
def SetCheckedFields(self, show, group):
    group = [s for s in group if (s in show)]
    current = []
    for row in range(self.fieldsGrid.NumberRows):
        current.append(self.fieldsGrid.GetCellValue(row, 2))
    new = [s for s in current if (s not in show)]
    self._setFieldsList((show + new))
    for row in range(self.fieldsGrid.NumberRows):
        field = self.fieldsGrid.GetCellValue(row, 2)
        self.fieldsGrid.SetCellValue(row, 0, ('1' if (field in show) else ))
        self.fieldsGrid.SetCellValue(row, 1, ('1' if (field in group) else ))