Sybase 2 Barcode Reader User Manual


 
Defining edit styles
250 DataWindow .NET
2 For the column getting its data from the DataWindow object, select the
DropDownDW edit style.
In the example, you would specify the DropDownDataWindow edit style
for the
dept_name column:
3 Click the browse button next to the DataWindow box and select the
DataWindow object that contains the data for the column from the drop-
down list (in the example,
d__dddw_dept).
4 In the Display Column box, select the column containing the values that
will display in the DataWindow object (in the example,
dept_name).
5 In the Data Column box, select the column containing the values that will
be stored in the database (in the example,
dept_id).
6 Specify other properties for the edit style and click OK when done.
What happens
At runtime, when data is retrieved into the DataWindow object, the column
whose edit style is DropDownDataWindow will itself be populated as data is
retrieved into the DataWindow object serving as the drop-down DataWindow
object.
When the user goes to the column and drops it down, the contents of the
drop-down DataWindow object display. When the user selects a display value,
the corresponding data value is stored in the DataWindow buffer and is stored
in the database when an
UpdateData is issued.