Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox and grid
Message
From
03/04/2003 11:44:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Combobox and grid
Miscellaneous
Thread ID:
00773603
Message ID:
00773603
Views:
49
I have a problem with a combobox on a grid. Whenever I set focus to it, it doesn't show the current value, only the blue for the focus (the correct way is that it should set focus to it and the control is blue with the value showing in white), when I leave the control it shows the value (and sometimes not even the value, been trying so many combinations), but it does save the information correctly.

I have a few other comboboxes set up the same way outside of the grid and they work fine. Is there a setting that I need to take into account when using a combobox inside a grid?

This is some of the code to setup the combobox

Thisform.grdTest.column2.Sparse = .F.
Thisform.grdTest.column2.Header1.Caption = 'Type'
Thisform.grdTest.column2.ControlSource = 'MBC_Purchaser.nType_id'
Thisform.grdTest.column2.cboPurchaserType.ColumnCount = 2
Thisform.grdTest.column2.cboPurchaserType.ColumnWidths = '200,40'
Thisform.grdTest.column2.cboPurchaserType.BoundColumn = 2
Thisform.grdTest.column2.cboPurchaserType.BoundTo = .T.
Thisform.grdTest.column2.cboPurchaserType.RowSource = 'curMBC_PurchaserType'
Thisform.grdTest.column2.cboPurchaserType.RowSourceType = 2

curMBC_PurchaserType has 2 columns cDescription and nType_id, the combobox is bound to the second one, the "nType_id".

Any suggestions? Anybody had this problem before?

Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform