General information
Category:
Forms & Form designer
With the IDE i put a combobox into a column. (column2 now has header1,text1 and combo1)
A init of my form i did:
thisform.grid1.column2.currentcontrol = "combo1"
thisform.grid1.column2.rowsourcetyp ....
thisform.grid1.rowrource ....
error:column2 currentcontrol expression return invalid value ???
Is there some reason that you doing this in code? Wouldn't it be much simpler just to set the column's CurrentControl property in the property sheet in the desgner?
The only reason that I can think of for such an error is that you have a typo and have misspelled the name of the combo in column2. Or else therre really is no combo in column2...
You may want to check out the white paper and sample code on my web site called "ow to Put a Combo Box in a Grid"
Previous
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