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. C#
  4. Data Grid Item Index ------------- Help

Data Grid Item Index ------------- Help

Scheduled Pinned Locked Moved C#
helpcssdatabasewpfwcf
5 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.
  • D Offline
    D Offline
    dsaikrishna
    wrote on last edited by
    #1

    Here i am facing a problem I m displaying a gridview data in that i want the sno is automatically to be generated for each and every row the grid is binding can any one pls help me Thanks in advance

    sai krishna

    K D 2 Replies Last reply
    0
    • D dsaikrishna

      Here i am facing a problem I m displaying a gridview data in that i want the sno is automatically to be generated for each and every row the grid is binding can any one pls help me Thanks in advance

      sai krishna

      K Offline
      K Offline
      karthick n mca
      wrote on last edited by
      #2

      :zzz:

      K 1 Reply Last reply
      0
      • D dsaikrishna

        Here i am facing a problem I m displaying a gridview data in that i want the sno is automatically to be generated for each and every row the grid is binding can any one pls help me Thanks in advance

        sai krishna

        D Offline
        D Offline
        dsaikrishna
        wrote on last edited by
        #3

        i only got it < asp:TemplateField HeaderText="Item Count"> <%#Container.DataItemIndex + 1%> Thanks

        sai krishna

        K 1 Reply Last reply
        0
        • K karthick n mca

          :zzz:

          K Offline
          K Offline
          karthick n mca
          wrote on last edited by
          #4

          such create a dummy cloumn and assign current row index value to the column...that's it..my friend

          1 Reply Last reply
          0
          • D dsaikrishna

            i only got it < asp:TemplateField HeaderText="Item Count"> <%#Container.DataItemIndex + 1%> Thanks

            sai krishna

            K Offline
            K Offline
            karthick n mca
            wrote on last edited by
            #5

            welcome...:laugh:

            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