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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

entering text and numbers in grid

Status
Not open for further replies.

PeriyurParthi

IS-IT--Management
Jul 18, 2001
258
IN
hi
i have a problem in grid, without useing any tables, how to manipulate the grid, only it is enableing when i use the table, here is the code
use lotno order code
thisform.grid1.recordsource=0
thisform.grid1.columncount=7
thisform.grid1.column1.header1.caption="Lot Code"
thisform.grid1.column2.header1.caption="Count"
thisform.grid1.column3.header1.caption="Colour"
thisform.grid1.column4.header1.caption="Quality"
thisform.grid1.allowrowsizing=.t.
thisform.grid1.allowheadersizing=.t.
thisform.grid1.scrollbars=3
thisform.grid1.column1.addobject("combo1","combobox")
thisform.grid1.column1.currentcontrol="combo1"
thisform.grid1.column1.combo1.visible=.t.
thisform.grid1.column1.combo1.style=2&&Dropdown List
thisform.grid1.column1.width=70
*thisform.grid1.column1.width=70
thisform.grid1.rowheight=35
do while !eof()
thisform.grid1.column1.combo1.additem(name)
skip
enddo


but mean while i need inputs apart from the table fileds, i dont know why the grid is not accpeting the values..pls help
regds
parthi
 
The grid in VFP is designed to be used with some sort of cursor only. You cannot have it unbound and expect it to work. Either bind it to a temporary table and discard the results, or use some third party activex grid that does not need to be bound. You might also consider using OLE to put an Excel grid on your form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top