Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. GridView

GridView

Scheduled Pinned Locked Moved Windows Forms
databasecsharphelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    moody123
    wrote on last edited by
    #1

    Hello, I'm working on Windows application c# i have form1 which contain data gridview to view the content of table from sql database. i've enabled edit, delete in the gridview, and then i've added two queries one for update and the other for delete through MyDataSet1.xsd page. now after updating and/or deleting any record i wanna click on a button to confirm user that the operation done. but i don't know how to save updating or deleting!! any help guys?

    L 1 Reply Last reply
    0
    • M moody123

      Hello, I'm working on Windows application c# i have form1 which contain data gridview to view the content of table from sql database. i've enabled edit, delete in the gridview, and then i've added two queries one for update and the other for delete through MyDataSet1.xsd page. now after updating and/or deleting any record i wanna click on a button to confirm user that the operation done. but i don't know how to save updating or deleting!! any help guys?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      1. Handle the UserDeletingRow event 2. Query the user if he/she wants to delete the row 3. Set the DataGridViewRowCancelEventArgs.Cancel = true, based on the response.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups