Thanks James, that did the trick.
>I do it all the time. Check out the sparse property.
>
>sparse=.f.
>
>>Has anyone successfully/reliably added a combo to a grid at run-time.
>>The following code works but I don't see the combo, can anyone help?
>>WITH .Column5
>> .RemoveObject("Text1")
>> .AddObject("cboModelId","searchgrd_cbosrch")
>> .CurrentControl = "cboModelId"
>> .ControlSource = "tmpSiteEquipment.fkmodid"
>> .cboModelId.BoundColumn = 3
>> .cboModelId.BoundTo = .T.
>> .cboModelId.ColumnCount = 3
>> .cboModelId.ColumnWidths = "300,300,0"
>> .cboModelId.RowSourceType = 6 && Field
>> .cboModelId.RowSource = "salmodel.modelnumber,descr,pkmodid"
>> .cboModelId.Visible = .T.
>>ENDWITH
>>TIA
>>Trevor
Previous
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