Results 1 to 2 of 2

Thread: RowDeleting event of a DataTable...

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    40

    RowDeleting event of a DataTable...

    Hi,

    I'm trying to display a confirmation message when a user delete a row from a DataTable.

    Since RowDeleting event is raised before the selected row is deleted, I may be able to display the confirmation and prevent the action in the RowDeleting event.

    Anyway, I couldn't find any way to cancel the action if the user decided not to delete the row during the confimation.

    Anyone out there has any solution for this?

    Thanks.

  2. #2
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    Question well

    what i would do is buffer the record that is being deleted and if the user whishes to cancel the delete let the delete go on through and then recreate the record from the buffer

    i would assume that there is a better way but i couldn't find a cancel method or anything of the like.....
    Magiaus

    If I helped give me some points.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width