Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBoxes in Grids
Message
From
24/08/1999 14:46:16
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
24/08/1999 14:39:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00257032
Message ID:
00257247
Views:
21
I add the Combo to the column and deleting the Text1 object.

VFP actually changes the CurrentControl automatically if the Combo is the only input control in the column.

>>
>>ADD OBJECT grid1 AS grid WITH ;
>> ColumnCount = 1, ;
>> DeleteMark = .F., ;
>> Height = 200, ;
>> Left = 27, ;
>> Panel = 1, ;
>> Top = 40, ;
>> Width = 320, ;
>> Name = "Grid1", ;
>> Column1.Width = 264, ;
>> Column1.Name = "Column1"
>>
>
>>ADD OBJECT form1.grid1.column1.combo1 AS combobox WITH ;
>> BoundColumn = 2, ;
>> ColumnWidths = "50,0", ;
>> RowSourceType = 6, ;
>> RowSource = "Itty.cName,iId", ;
>> ControlSource = "InvM.iTTyId", ;
>> Height = 24, ;
>> ColumnLines = .F., ;
>> Left = 142, ;
>> Top = 47, ;
>> Width = 100, ;
>> BoundTo = .T., ;
>> Name = "Combo1"
>
>Excuse me, Rex, I can't seek statement like
>Column1.CurrentControl = "Combo1"!
>
>You are add Combo control in column, but current control is still Text1 by default. Sorry my importunity, but check Column1.CurrentControl setting.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform