jvwiv Posted February 28, 2008 Report Share Posted February 28, 2008 GridFX does a nice job of deleting records from our bound forms, but now I want to override the default behavour and perform some checks prior to deleting the record. I can perform the checks via a stored proc and can have the grid call the stored proc, but I am unsure how to pass the forms key to my stored proc. Thus, I took a different route, using a sub I had coded to execute the stored proc. I am now trying to pass in a variable to the stored proc from the grid. I have tried to use keyfield = e.datavalues.item("ItemID") to set a variable to the key field I wish to delete. When ever I run the application I get an error. The results are NullReferenceException was handled by user code. Object reference not set to an instance of an object. What am I doing wrong? How would I pass a parameter to the data source from the grid to fire the stored proc there? (Preferred) Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.