Question on dropdown box selection mode

Hello all,

I have a simple dropdown with a query providing a two column dataset for the data. If the selection mode is set to Strict, every time I open the screen in the Designer it shows the No Selection Label: <Select One>, even though I set the No Selection Value to a valid number in the dataset.

If I change the selection mode to Lenient, then I get the correct Selected Value and Label. Going back and forth between Strict and Lenient did not produce any changes in the Selected Value, it stayed the same number while switching between modes.

So, what is going to between these two modes? The docs say that Strict requires the value to be in the dataset, which it is.

From the docs:

  • Strict: Selected values must always correlate to an option in the list defined by the Data property. If an invalid selection is set (via a binding or a script), the selection will be set to the values defined by the No Selection properties. If the Data property is set to a list that does not contain the current selection, the current selection will be reset to the No Selection values.

Does this mean you've added -1 to the value column of the dataset or you've changed the default -1 to some other number? Also, is column 0 of the dataset an integer datatype?

Column 0 is indeed an integer, column 1 is string. All integer values are positive, starting with 1.

image