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. Serial No

Serial No

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
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.
  • M Offline
    M Offline
    Mkanchha
    wrote on last edited by
    #1

    How to display Serial Numbers(1,2,3....) in DataGrid.I'm USING asp.net 1.1 Mohan Balal

    S R 2 Replies Last reply
    0
    • M Mkanchha

      How to display Serial Numbers(1,2,3....) in DataGrid.I'm USING asp.net 1.1 Mohan Balal

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      Click[^] There are lot of Articles Related to the Datagrid is there. This may help you.

      Regards, Satips.

      M 1 Reply Last reply
      0
      • S Sathesh Sakthivel

        Click[^] There are lot of Articles Related to the Datagrid is there. This may help you.

        Regards, Satips.

        M Offline
        M Offline
        Mkanchha
        wrote on last edited by
        #3

        Thanks for your Replay, If you have code or example and Post here, it will better for Me Mohan balal

        S 1 Reply Last reply
        0
        • M Mkanchha

          How to display Serial Numbers(1,2,3....) in DataGrid.I'm USING asp.net 1.1 Mohan Balal

          R Offline
          R Offline
          RaghuSanta
          wrote on last edited by
          #4

          Hi Mohan, Check for the below code. Datagrid.Databind 'After binding the datagrid Dim item As DataGridItem Dim i as integer=0 For Each item In Datagrid.Items i+=1 item.Cells(0).Text=i 'Where item.Cells(0) is the first column in your datagrid if you have kept for serial number. Next '--------------------------------------- Or you can append the value of "i" while you are using datatable when you fill it with datareader. Regards, Raghu.

          1 Reply Last reply
          0
          • M Mkanchha

            Thanks for your Replay, If you have code or example and Post here, it will better for Me Mohan balal

            S Offline
            S Offline
            Sathesh Sakthivel
            wrote on last edited by
            #5

            Just try yourself there are lot of articles there. If you get any error means, tell your error, we will solve your problem.

            Regards, Satips.

            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