Show combo box

The data grid offers the possibility to display a column as a combo box.

Show combo box 1:

  1. Select the Combobox control type.
  2. Open the Data definitions dialog by clicking the ... button.

In the Data definitions dialog you can add as many entries as you like.

Show combo box 2:

  1. Text: Text that is displayed for the combo box entry.
  2. Value: Value used to select the combo box entry.
  3. Add: Adds a new combo box entry.

After configuration, the combobox automatically displays the text stored for the respective value. The data structure specifies from the outside the value used to select the entry in the combo box.

The following sample is based on the default configuration of the data grid. The code can be copied under the attribute SrcData:

[
   {
      "Test1": "Example Data",
      "Test2": 42,
      "Test3": true,
      "Test4": "42"
   },
   {
      "Test1": "Example Data",
      "Test2": 3.1415,
      "Test3": false,
      "Test4": "43"
   }
]

This results in the following view:

Show combo box 3: