private void FillCombo() { try { HPS.BLL.UserGroupBLL.BLLUserGroup_TFactory UserGroupID_intFactory = new HPS.BLL.UserGroupBLL.BLLUserGroup_TFactory(); string Condition = "[UserGroup_T].[Active_bit]='true'"; DataTable UserGroupID_intDataTable = new DataTable(); UserGroupID_intFactory.GetAllByCondition(Condition, ref UserGroupID_intDataTable); this.UserGroupID_intComboBox.DisplayMember = HPS.BLL.UserGroupBLL.BLLUserGroup_T.UserGroup_TField.UserGroup_nvc.ToString(); this.UserGroupID_intComboBox.ValueMember = HPS.BLL.UserGroupBLL.BLLUserGroup_T.UserGroup_TField.UserGroupID_int.ToString(); this.UserGroupID_intComboBox.DataSource = UserGroupID_intDataTable; this.UserGroupID_intComboBox.SelectedIndex = -1; HPS.BLL.InfractionGroupBLL.BLLInfractionGroup_TFactory InfractionGroupID_intFactory = new HPS.BLL.InfractionGroupBLL.BLLInfractionGroup_TFactory(); string InfractionGroupCondition = "[InfractionGroup_T].[Active_bit]='true'"; DataTable InfractionGroupID_intDataTable = new DataTable(); InfractionGroupID_intFactory.GetAllByCondition(InfractionGroupCondition, ref InfractionGroupID_intDataTable); this.InfractionGroupID_intComboBox.DisplayMember = HPS.BLL.InfractionGroupBLL.BLLInfractionGroup_T.InfractionGroup_TField.InfractionGroupID_int.ToString(); this.InfractionGroupID_intComboBox.ValueMember = HPS.BLL.InfractionGroupBLL.BLLInfractionGroup_T.InfractionGroup_TField.InfractionGroupID_int.ToString(); this.InfractionGroupID_intComboBox.DataSource = InfractionGroupID_intDataTable; this.InfractionGroupID_intComboBox.SelectedIndex = -1; } catch (Exception ex) { throw ex; } }