General information
Title:
Changing BoundTo property at instantiation
All,
I have a combo box class which I am using for lookup. The class can be used either on a form or in a column of a grid. The RowSource consists of two fields, a character description and an integer key, in a read only view. The combo box has a property to tell whether the combo is in a grid or not. If the combo box is in a Grid, I need the BoundColumn to be the Character field and BoundTo need to be false. If the combo box is on a form, the BoundColumn is the integer key and the BoundTo needs to be true.
In the Init method I assign the BoundTo and BoundColumn properties based on the value of lInGrid. When I run the form and the combo box is on the form, the combo box is initially blank. If I set the properties in the combo and remove the code from the Init, all works as expected.
Why can I not set the BoundTo property on the fly?
Am I missing something?
TIA
Rex
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only