Jump to content
Software FX Community

Handling Events for OnItemDeleting


pbursch

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...