Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Row Control
Message
From
17/09/1997 06:56:58
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00050047
Message ID:
00050350
Views:
27
Marc,

Thanks for the help...works great....

Gary

>Gary,
>
>Here's the code that resides in the xDelete method of my base grid:
>
>select (this.recordsource)
>delete
>this.refresh()
>
>This xDelete method gets called by a delete button of which the when method contains the following code:
>
>if type("thisform.activecontrol.name")<>"C"
> *-- assume you are deleting the record/document
> *-- let click handle it.
> return
>endif
>*? because in the when the grid is still active.
>if upper(thisform.activecontrol.baseclass)='GRID'
> thisform.activecontrol.xdelete()
> thisform.yTotals()
> return .f.
>endif
>
>So when the user clicks on the delete button and the grid is active, the current line is deleted, and it disappears from the screen. Set Delete must be on of course and I always submit created cursor to grids.
>
>HTH,
>
>
>Marc
Previous
Reply
Map
View

Click here to load this message in the networking platform