private void BindCatalog() { var dtItemDetail = itemDetailService.GetDTByCode(base.UserInfo, "OrganizeCategory"); var dataRow = dtItemDetail.NewRow(); dtItemDetail.Rows.InsertAt(dataRow, 0); cboCategory.DisplayMember = "ItemName"; cboCategory.ValueMember = "ItemValue"; cboCategory.DataSource = dtItemDetail.DefaultView; }
private void BindGender() { DataTable dtItemDetail = itemDetailService.GetDTByCode(base.UserInfo, "Gender"); DataRow dataRow = dtItemDetail.NewRow(); dtItemDetail.Rows.InsertAt(dataRow, 0); cboGender.DisplayMember = "ItemName"; cboGender.ValueMember = "ItemValue"; cboGender.DataSource = dtItemDetail.DefaultView; }
private void BindCategory() { var dtItemDetail = itemDetailService.GetDTByCode(base.UserInfo, "RoleCategory"); var dataRow = dtItemDetail.NewRow(); dtItemDetail.Rows.InsertAt(dataRow, 0); cboCategory.DisplayMember = CiItemDetailsTable.FieldItemName; cboCategory.ValueMember = CiItemDetailsTable.FieldItemValue; cboCategory.DataSource = dtItemDetail.DefaultView; }