Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids, Views and deleted records (VFP3)
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00069020
Message ID:
00069047
Views:
32
>I have a read only grid based upon a view (I needed some memo fields truncated and displayed in text boxes). Users can delete the records from the table by clicking on a delete button which uses SQL Delete to delete the record and it's children. I then do a grid.refresh().
>
>The refresh however doesn't update the view.
>
>If I try and delete from the view I get an error. If I try and make the view not readonly I am told I have to reload the data environment. Great! but how do I do this.
>
>What is the best practice in this situation?
>
>Thanks
>Sarah.
Sarah,

After you delete the records issue Requery("TheView") using the view's alais name and then refresh the grid.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform