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
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