Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edited content of combobox won't much longer after switch to next column

Status
Not open for further replies.

koklimabc

Programmer
Jun 17, 2013
49
MY
I'd apply combobox with style "0" in each row of grid for ensuring to edit content. I can't managed to set bound to .f. because it will affect the rest of combobox in grid with same selected option.It won't be problem if I edit the content of combobox in form outside the grid and still hold in displayable in view. I need to edit content of combobox in each row but it will stand to hold the content until I reach or append in next row without dissapear.I'm using VFP6.0.

Here is my combox coding in init()
frm.grid_list.column9.width = 65
frm.grid_list.column9.bound = .t.
frm.grid_list.column9.removeobject("text1")
frm.grid_list.column9.addobject("com_uom","combobox")
frm.grid_list.column9.currentcontrol = "com_uom"
frm.grid_list.column9.com_uom.visible = .t.
frm.grid_list.column9.com_uom.readonly = .f.
frm.grid_list.column9.sparse = .f.

Appreciate someone could help me in this case of problems.Thanks.
 
 http://files.engineering.com/getfile.aspx?folder=08926556-6cfa-4760-b75a-ab0038b54049&file=help.jpg
If the content didn't exists in Combobox RowSource you should add it after Combo loose focus.

Borislav Borissov
VFP9 SP2, SQL Server
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top