Validating user input

When users enter data into a column in a DataWindow object, processing begins at the top of the display value column of the associated code table.

If the data matches a display value, the corresponding data value is put in the internal buffer. For each display value, the first data value is used. Using the sample code table, if the user enters Massachusetts, ma, or Mass, the data value is MA.

You can specify that only the values in the code table are acceptable:

When the code table processing is complete, the ItemChanged or ItemError event is triggered.

NoteCode table data The data values in the code table must pass validation for the column and must have the same datatype as the column.