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. Web Development
  3. ASP.NET
  4. data grid ..edit n update !!

data grid ..edit n update !!

Scheduled Pinned Locked Moved ASP.NET
databasecsssql-servervisual-studiosysadmin
4 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.
  • R Offline
    R Offline
    rocky811
    wrote on last edited by
    #1

    hi , I have created a data grid and also connected to database ( in sql server) . my data grid table consists of few rows and columns . my each row shud be updated by modfying the row creating a edit box there in the page displayed when u click the edit button!! i want to edit each row and then update existing record of the table .. i am working in VS 2005 and using sql server manager for my database .. can somebody explain me each step clearly how to do this !!! thank you

    M 1 Reply Last reply
    0
    • R rocky811

      hi , I have created a data grid and also connected to database ( in sql server) . my data grid table consists of few rows and columns . my each row shud be updated by modfying the row creating a edit box there in the page displayed when u click the edit button!! i want to edit each row and then update existing record of the table .. i am working in VS 2005 and using sql server manager for my database .. can somebody explain me each step clearly how to do this !!! thank you

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      1. Convert all bounded columns to the template columns. 2. Add a Link and set the commandname "Edit" in normal template.. 3. Add another link in edit template and set the commandname "update" 4. In Datagrid_ItemCommand event, if(commandname = "edit"){ //change the datagrid to edit mode } else if(commandname = "update"){ // find the control and get the value // update this value to database... } That's all..

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      R 1 Reply Last reply
      0
      • M Michael Sync

        1. Convert all bounded columns to the template columns. 2. Add a Link and set the commandname "Edit" in normal template.. 3. Add another link in edit template and set the commandname "update" 4. In Datagrid_ItemCommand event, if(commandname = "edit"){ //change the datagrid to edit mode } else if(commandname = "update"){ // find the control and get the value // update this value to database... } That's all..

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

        R Offline
        R Offline
        rocky811
        wrote on last edited by
        #3

        can u explain in detail how to do that.. i am not able to do it still

        M 1 Reply Last reply
        0
        • R rocky811

          can u explain in detail how to do that.. i am not able to do it still

          M Offline
          M Offline
          Michael Sync
          wrote on last edited by
          #4

          Those steps that I mentioned are the details.. I currently don't have the sample code for this..

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

          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