pbursch Posted December 30, 2007 Report Share Posted December 30, 2007 I am having trouble with the OnItemDeleting event handler. I have an unbound grid that is being populated programmatically and need to handle the delete event. Specifically, I need to determine the grid row that is being deleted. How do I use the deleting event args to determine the item that is being deleted? protected void Grid1_ItemDeleting(object sender, GridFX.WebForms.GridItemDeletingEventArgs e) { // Delete action goes here. } Also where can I find documenation for the OnItemInserting, OnItemUpdating and OnItemDeleting event handlers?Thanks Quote Link to comment Share on other sites More sharing options...
StephenP Posted December 30, 2007 Report Share Posted December 30, 2007 Hi, The GridItemDeletingEventArgs has an Item property which points to the GridItem being deleted. e.Item.xxx If you do not see that, it's almost certainly because you don't have the latest version. You can get it from the Check for Updates smart tag in Visual Studio or from http://support.softwarefx.com/ShowInteractive.aspx?Product=GridFX10&option=0 The documentation should be updated as well. Our offices are closed right now so as soon as we open back up I'll get back to you on that. Thanks for using Grid FX! Let me know how it goes. Quote Link to comment Share on other sites More sharing options...
pbursch Posted January 16, 2008 Author Report Share Posted January 16, 2008 My version is 1.0.2901.23051 which is also the latest version posted on your web site. Is there something newer? Quote Link to comment Share on other sites More sharing options...
pbursch Posted January 16, 2008 Author Report Share Posted January 16, 2008 This property (e.item) is null. Hence, my problem. Quote Link to comment Share on other sites More sharing options...
StephenP Posted January 17, 2008 Report Share Posted January 17, 2008 Hi, thanks so much for working with us. I found the problem and have corrected it. I will release a hotfix either today or tomorrow. Will let you know. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.