Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing a grid that contains a table buffered view
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00301328
Message ID:
00301423
Views:
30
Paul,
Do you have a grid.refresh() after adjusting the line #s? That should update the grid from the buffered view.

HTH
Barbara

>I've got a grid based on the normal ccontrols, cgrid. I've added a few columns to it and in the first column I've got a textbox. The grid contains lines of an invoice with the first column displaying the line #. The grid is populated using a table buffered view that has an index created on the line # field.
>
>In the textbox's KeyPress() method I've got code that checks to see if they hit the plus, minus, INS, or DEL keys. If they hit plus or minus, the current line moves down (or up) one - basically I've just got code that swaps the current line with the next line #'s. It works OK, but once the numbers have been swapped the grid's display isn't updated. For example:
>
>
>Line # Description
>1 Line 1
>2 Line 2
>3 Line 3
>4 Line 4
>
>If I was sitting on line 2 in the grid and hit the minus key, here's what the grid is ending up like:
>
>Line # Description
>2 Line 1
>1 Line 2
>3 Line 3
>4 Line 4
>
> I've run through the sequence using the browse window and manually typing each line of code and I know it works OK (as soon as I click on the browse window it's updated). The code behind everything seems to be sound, I just don't think the grid is being updated.
>
> Is this one of those issues where the RecordSource of the grid has to be reset? If there anything in the framework that will keep the grid layout from being blown away when I do this?
>
> Since this thing is table-buffered, I can't just issue a Requery().
>
>-Paul
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform