Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you handle Grid Delete Column/Method?
Message
From
04/05/1998 00:57:25
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00096634
Message ID:
00096643
Views:
24
Hi Mark ---

This is gonna sound like a cheezy post but since "Cheezy Solutions R Us", listen up:

Check for the current record number in the table/view used by the grid. Store it to a property or global var. Recalc the invoice total based upon all records EXCLUDING the record=the record number. Better yet, get rid of the doggone delete mark and put a delete button applicable to the grid where you can control the whole she-bang.

John


>The most confounding part of the grid is the delete column. I really want/need to use this feature, but it drives me crazy. What I want to do is fire code to recalculate invoice totals when a user clicks the delete column next to an item. However, the item is not "truly" deleted until after the code in the Grid delete method fires. The Deleted() function, if used in the method code, always returns the opposite value of what the record will be after the method code is executed. The recalculation does not reflect the correct total because the wanna-be deleted item is not yet deleted.
>
>Anyone care to shed some light on how you handle this? TIA.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform