Lil Dave
Jan 19th, 2000, 01:18 PM
Sorry about the broad subject line ... :)
In VB 3, with TrueGrid Professional, you had the option where you could tie records in a fields to display the appropriate records from another table.
e.g.
1 = Ordered
2 = Installed
3 = Not Installed
4 = Pending
so when the grid saw a 2, it would automatically look up the table and show 'Installed' instead of the 2. As I recall it was preloaded in the Form_Load() event. You could then convert it into a drop down box and select the appropriate value from it.
In VB 5, does the DBGrid or the MSFlexGrid do this ... if so how.
My 'band aid' method is to disable the grid and position a DBList or DBCombo control exactly over the current cell then once the value is selected, hide the control and reactivate the grid to show the value selected.
There must be a better way ...
Cheers Dave
In VB 3, with TrueGrid Professional, you had the option where you could tie records in a fields to display the appropriate records from another table.
e.g.
1 = Ordered
2 = Installed
3 = Not Installed
4 = Pending
so when the grid saw a 2, it would automatically look up the table and show 'Installed' instead of the 2. As I recall it was preloaded in the Form_Load() event. You could then convert it into a drop down box and select the appropriate value from it.
In VB 5, does the DBGrid or the MSFlexGrid do this ... if so how.
My 'band aid' method is to disable the grid and position a DBList or DBCombo control exactly over the current cell then once the value is selected, hide the control and reactivate the grid to show the value selected.
There must be a better way ...
Cheers Dave