B2019-100: UCF check off & check off header issues

This commit is contained in:
Kathy committed 2019-08-01 15:01:32 +00:00
1 parent c6f615bceb
commit 2b74bd52ab
3 files changed
+12 -7

No files matched your search

@@ -775,7 +775,11 @@ namespace VEPROMS
lblCheckoffHeading.Enabled = true;
ppCmbxCheckoffHeading.Enabled = true;
ppCmbxCheckoffHeading.DataSource = chkoffHeaderList;
ppCmbxCheckoffHeading.SelectedIndex = _SectionConfig.Section_CheckoffHeaderSelection;
// B2019-100: the checkoffselection may be larger than number in the list if elements of list were made inactive from UCF. Adjust as necessary:
if (_SectionConfig.Section_CheckoffHeaderSelection >= ppCmbxCheckoffHeading.Items.Count)
ppCmbxCheckoffHeading.SelectedIndex = -1;
else
ppCmbxCheckoffHeading.SelectedIndex = _SectionConfig.Section_CheckoffHeaderSelection;
}
else
{