# Enums

Every column which has its control type defined as xComboBox will generate an Enum in the Typed DataSet definition. The data type behind this information is not standard .NET enum, it is a custom data structure which can also hold string values, custom conversion operators, support for values outside the Enum spectre.&#x20;

For creating a new Enums type, the next steps should be followed (Example: table versand\_vorschlag, column errorstatus):

* Open TimeLine DB Designer (TDD)
* Select table -> right mouse click -> edit table

![](/files/-MYJdNuRKme1V2_Asaf2)

* Select the column that will be converted to enum and change control type to xComboBox

![](/files/-MYJdkOY2N4gKG0bjMyx)

* Open control definition (via BlueArrow) and fill in ComboItems (convention: ComboxItems descriptions should be written in German)

![](/files/-MYJdoTCwEuQgsrRGE7U)

* Save and update DBRepository (Pop-up appears to save DBRepository; the file must be checked in)
* Open TimeLine Developer (TLD) and compile TimeLine.TypeDataSets (the new enum will be added to Enums.cs, therefore the file will be automatically checked out)
* Open a DataSet where the column is used and save the DataSet (the DataSet will be regenerated as well) If no DataSet is available, this step will be skipped.
* Recompile solution in order to get the errors that need to be fixed because of the conversion&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tldocs.gitbook.io/documentation/framework/business-related-functionality/enums.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
