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. how to traverse a datarow in as datatable and modify that datarow

how to traverse a datarow in as datatable and modify that datarow

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
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.
  • F Offline
    F Offline
    Flavia A
    wrote on last edited by
    #1

    I have a gridview to whom i have provided a datatable as a datasource i hve some modifications to be made in one of the rows that i select from the gridview the same modifications should be made in the datatable how do i go abt with it.

    A 1 Reply Last reply
    0
    • F Flavia A

      I have a gridview to whom i have provided a datatable as a datasource i hve some modifications to be made in one of the rows that i select from the gridview the same modifications should be made in the datatable how do i go abt with it.

      A Offline
      A Offline
      Amit Spadez
      wrote on last edited by
      #2

      send me the code..so that i could tell u properly

      F 1 Reply Last reply
      0
      • A Amit Spadez

        send me the code..so that i could tell u properly

        F Offline
        F Offline
        Flavia A
        wrote on last edited by
        #3

        i managed it . i took a non editable column of the grid view in the sesion and used it as unique key for modification. traversed the datatable foreach (DataRow datar in dtvalues.Rows) { if (datar[0].ToString() == Dl_NO_Hold) { datar[1] = txtFname.Text; datar[2] = txtLName.Text; } } and replaced it

        A 1 Reply Last reply
        0
        • F Flavia A

          i managed it . i took a non editable column of the grid view in the sesion and used it as unique key for modification. traversed the datatable foreach (DataRow datar in dtvalues.Rows) { if (datar[0].ToString() == Dl_NO_Hold) { datar[1] = txtFname.Text; datar[2] = txtLName.Text; } } and replaced it

          A Offline
          A Offline
          Amit Spadez
          wrote on last edited by
          #4

          Great..It must have worked well.....

          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