H
Henry
Please forgive me if I have missed an obvious answer to this question...
I am looking at controls like comboBoxes, ListBoxes, and Trees and trying to
understand how to associate what is viewed in the controls with the keys
that represent the item values. For example I want to create a dropdown
box in which I display some data from my datasource that represents a
period. The visible text could be anything, but each record is uniquely
defined by an integer value.
When a user selects a value in the drop-down box I want to use the integer
value as input to update a tree control that represents in the database such
as organizations. Each organization also has a unique key and when the user
selects a specified organization I want to use that key to update data in
yet another tree that represents items that belong in that organization.
This could actually go on for a couple more iterations.
When an item in the second tree control is selected I then update a list or
grid control showing properties of the item.
Each key value in his scenario is either a primary key or a foreign in the
underlying tables.
Most of the code samples I have seen show me how to fill in the visible
text, but is there another field or value that I can fill that keeps the key
values? I seem to recall that there is, but I don't know what I am looking
for in the clas properties of these controls.
I am looking at controls like comboBoxes, ListBoxes, and Trees and trying to
understand how to associate what is viewed in the controls with the keys
that represent the item values. For example I want to create a dropdown
box in which I display some data from my datasource that represents a
period. The visible text could be anything, but each record is uniquely
defined by an integer value.
When a user selects a value in the drop-down box I want to use the integer
value as input to update a tree control that represents in the database such
as organizations. Each organization also has a unique key and when the user
selects a specified organization I want to use that key to update data in
yet another tree that represents items that belong in that organization.
This could actually go on for a couple more iterations.
When an item in the second tree control is selected I then update a list or
grid control showing properties of the item.
Each key value in his scenario is either a primary key or a foreign in the
underlying tables.
Most of the code samples I have seen show me how to fill in the visible
text, but is there another field or value that I can fill that keeps the key
values? I seem to recall that there is, but I don't know what I am looking
for in the clas properties of these controls.