Subject | Data Display Issue |
---|---|
Author | Christian Gütter |
Post date | 2002-07-08T16:22:05Z |
Hi,
I am using a TIB_ComboBox to insert data into a SMALLINT field.
The property .Items of the ComboBox is populated in the following
way:
1st invoice
2nd invoice
3rd invoice
I use the .ItemValues property in the following way:
1
2
3
So what the user sees as "1st invoice" is stored as "1" in
the database.
This all works fine :-)
But I have to display this data in an TIB_Grid, and the grid
always displays the values which are stored in the DB (1, 2, etc.)
Of course, this is not very user-friendly, but I could not figure
out how to tell the grid to show the user-friendly values like
the ComboBox does.
Any hints?
TIA,
Christian
I am using a TIB_ComboBox to insert data into a SMALLINT field.
The property .Items of the ComboBox is populated in the following
way:
1st invoice
2nd invoice
3rd invoice
I use the .ItemValues property in the following way:
1
2
3
So what the user sees as "1st invoice" is stored as "1" in
the database.
This all works fine :-)
But I have to display this data in an TIB_Grid, and the grid
always displays the values which are stored in the DB (1, 2, etc.)
Of course, this is not very user-friendly, but I could not figure
out how to tell the grid to show the user-friendly values like
the ComboBox does.
Any hints?
TIA,
Christian