B2019-100: UCF check off & check off header issues
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user