Combobox in a grid problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi all,
I use VFP 9, in VFP 8 this problem didn't exist.
In earlier postings we determined that this behavior is a bug, but I want to
see if any one found a fix or a way to work around the problem. Here is the
problem

If you put a grid on a form (or on a page of a pageframe), and insert a
combobox control in one of the columns and change the CurrentControl
property to point to the ComboBox, the following will happen:

1- if the Combobox control style is set to 0 (dropdowncombo), the Combobox
will only show the first 8 characters of the field
2- if the Combobox control style is set to 2 (dropdownlist), it will show
the entire field.

However, in both instances, the control doesn't refresh when you click on it
and select an item. nothing appears in the combobox till after you move to
a different column or a different record.

My suggestion is to try it keeping this in mind:

the combobox point to a field in a related table.

Thank you,

Hutch Elassaad

--


---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com



.



Relevant Pages

  • RE: Use match function to add different item in Combobox
    ... What I want to do is to add a new item in Combobox itself, ... that you typed in the ComboBox control if the ComboBox control is not bound ... click UserForm to insert a UserForm in your workbook. ... Add a CommandButton control to the UserForm. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: earlier combobox in a grid problem
    ... I use VFP 9, in VFP 8 this problem didn't exist. ... combobox control in one of the columns and change the CurrentControl ... 1- if the Combobox control style is set to 0, ... >> The most powerful anti-spam software available. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Combo Box Control
    ... the standard Access combobox won't do this. ... could use an ActiveX "owner draw" combobox control. ...
    (microsoft.public.access.formscoding)
  • Re: Self Relationship
    ... "tina" wrote: ... replace ComboboxName with the correct name of the combobox control name, ... *current* record may affect the recordset returned to the combobox droplist ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Combo Box Inside Grid Column.
    ... I came to work in pain and I think I will leave in pain. ... Is there a VFP 8 example that comes with VFP already that I can examine and ... you'll not have a combobox in every row ... Also the grid column determins the Controlsource of the Column and the ...
    (microsoft.public.fox.programmer.exchange)