Roy,
See
Re: Combobox display problems when having focus Message #
744570>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.
--sb--