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. ASP.NET GridView

ASP.NET GridView

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
5 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
    Socheat Net
    wrote on last edited by
    #1

    Dear, I using GridView in ASP.NET it can show size paging, and work normally (data changed when click move page), but when I use code below to change row, it does not work (data not changed) foreach (GridViewRow gvr in rst_Table.Rows) { gvr.Cells[0].Text = "" + i.ToString() + "."; gvr.Cells[5].Text = CommonUtils._gender(ds.Tables[0].Rows[i -1]["Gender"].ToString()); i += 1; } Please help me

    Socheat

    A B 2 Replies Last reply
    0
    • S Socheat Net

      Dear, I using GridView in ASP.NET it can show size paging, and work normally (data changed when click move page), but when I use code below to change row, it does not work (data not changed) foreach (GridViewRow gvr in rst_Table.Rows) { gvr.Cells[0].Text = "" + i.ToString() + "."; gvr.Cells[5].Text = CommonUtils._gender(ds.Tables[0].Rows[i -1]["Gender"].ToString()); i += 1; } Please help me

      Socheat

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Socheat.Net wrote:

      ut when I use code below to change row, it does not work (data not changed)

      What's error are you getting ?

      cheers, Abhijit

      S 1 Reply Last reply
      0
      • S Socheat Net

        Dear, I using GridView in ASP.NET it can show size paging, and work normally (data changed when click move page), but when I use code below to change row, it does not work (data not changed) foreach (GridViewRow gvr in rst_Table.Rows) { gvr.Cells[0].Text = "" + i.ToString() + "."; gvr.Cells[5].Text = CommonUtils._gender(ds.Tables[0].Rows[i -1]["Gender"].ToString()); i += 1; } Please help me

        Socheat

        B Offline
        B Offline
        Brij
        wrote on last edited by
        #3

        Where you have written this code?

        Cheers!! Brij

        1 Reply Last reply
        0
        • A Abhijit Jana

          Socheat.Net wrote:

          ut when I use code below to change row, it does not work (data not changed)

          What's error are you getting ?

          cheers, Abhijit

          S Offline
          S Offline
          Socheat Net
          wrote on last edited by
          #4

          I did not get error, but data that display still the same in first page

          Socheat

          B 1 Reply Last reply
          0
          • S Socheat Net

            I did not get error, but data that display still the same in first page

            Socheat

            B Offline
            B Offline
            Brij
            wrote on last edited by
            #5

            Debug the code,Is the function is called where you have written the above code.

            Cheers!! Brij

            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