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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to edit and update the gridview

How to edit and update the gridview

Scheduled Pinned Locked Moved ASP.NET
questionhtmldatabasehelptutorial
4 Posts 3 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.
  • S Offline
    S Offline
    slSoftware
    wrote on last edited by
    #1

    Hi EveryOne! I have created a web application,which has registration page for students,when user load the page there is a gridview also show the details of other user's also in the page load,,i need allow user's to edit and update gridview itself,so i have set commandfield for that,so how do i give the coding for that edit and update in codebehind page(i need to give coding for there events eg-:RowUpdating.),not the html page i have already set datasource for retrive the details from database and bind it to gridview so i cant use 2 datasource in form isn't it? pls help me to do this.

    B L 2 Replies Last reply
    0
    • S slSoftware

      Hi EveryOne! I have created a web application,which has registration page for students,when user load the page there is a gridview also show the details of other user's also in the page load,,i need allow user's to edit and update gridview itself,so i have set commandfield for that,so how do i give the coding for that edit and update in codebehind page(i need to give coding for there events eg-:RowUpdating.),not the html page i have already set datasource for retrive the details from database and bind it to gridview so i cant use 2 datasource in form isn't it? pls help me to do this.

      B Offline
      B Offline
      badgrs
      wrote on last edited by
      #2

      What kind of datasource are you using? You can specify the method for the update command in the datasource and optionally its parameters, if its simple enough there shouldn't be any need for event handlers in your code.

      S 1 Reply Last reply
      0
      • B badgrs

        What kind of datasource are you using? You can specify the method for the update command in the datasource and optionally its parameters, if its simple enough there shouldn't be any need for event handlers in your code.

        S Offline
        S Offline
        slSoftware
        wrote on last edited by
        #3

        I'm using Ado.net and can u give me sample coding of update the details of gridview itself (In UpdateCommand).If u need any details ask from me. Thanks

        1 Reply Last reply
        0
        • S slSoftware

          Hi EveryOne! I have created a web application,which has registration page for students,when user load the page there is a gridview also show the details of other user's also in the page load,,i need allow user's to edit and update gridview itself,so i have set commandfield for that,so how do i give the coding for that edit and update in codebehind page(i need to give coding for there events eg-:RowUpdating.),not the html page i have already set datasource for retrive the details from database and bind it to gridview so i cant use 2 datasource in form isn't it? pls help me to do this.

          L Offline
          L Offline
          linpihong
          wrote on last edited by
          #4

          you can get the sample from asp.net quickstart tutorial or msdn

          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