Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Values
Message
From
29/01/2002 09:21:05
 
 
To
29/01/2002 09:17:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00612122
Message ID:
00612125
Views:
26
Hello Steven.

How come the following code always gives me the value of the first row in the grid no matter which row I am on?

Select drawlcttable
Seek(PadR(AllT(ThisForm.Grid1.Column1.Text1.Value),24)) Order pcloc


The problem here is that you are misunderstanding how the grid works. A grid is not a spreadsheet. There is only ever one row in the grid. The rest is done with smoke and mirrors.

If you need to access the data, you can just refere to the fields in the grid's recordSource. So if column 1 is bound to Field1 in the grid's RecordSOurce and the current row in the grid is the fourth row, refereing to < grid.RecordSource >.Field1 will give the value you want.
Previous
Reply
Map
View

Click here to load this message in the networking platform