Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Problem (as usual)
Message
From
10/07/2001 14:20:34
 
 
To
10/07/2001 14:00:31
Rebecca Stottlemire
Kansas State Department of Commerce
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00528723
Message ID:
00528808
Views:
13
>>>I have a local view in a grid, which can be edited. When the user uses the down arrow to move down a record, it seems like the file pointer isn't actually moved down one until the fields are tabbed through. In other words, it seems to not have correct data in the grid1.column1.text1.value until the field is tabbed into. Does this make sense? I'm doing a calculation using a field that they don't tab into and it's using the data from the previous record.
>>
>>Doing calculations in grids is a bit of a beast. When you do your calculation, I trust you are making _sure_ that you are leaving your record pointer in the same state it was before doing the calculation?
>>
>>Is the grid's recordsource a child? IOW are you using LinkMaster, ChildOrder, and so on? Any chance those are getting mucked with?
>
>Hi!
>
>It's a local view being used as a RecordSource (RecordSourceType = 1).
> When the user uses the arrow down to go down to the next record, then puts a value in column 5, column 5 is then divided by column 6 to get a percent and put it in column 4.

Okay, but how does that value get put in the column? For example, do you have code in the AfterRowColChange() method? Is that how you're handling the calculated column?

>It is using the value of column 6 in the row above to do the calculation. But, if I tab through column 6, then come back, it uses the right one.

What's the sparse setting of the column?

Hm. How about this? Instead of me guessing and driving you nuts with questions *g*, open your form with the class browser, select the view code button, then email me the code. Tell me what the grid's name is that you're having trouble with.

> It's like it hasn't refreshed to the new value or something. I don't actually move any record pointer, I just assumed that it was when the user used the down arrow to go down a row (or several rows, as long as they use the arrow).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform