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. Visual Basic
  4. datagridview

datagridview

Scheduled Pinned Locked Moved Visual Basic
csharp
3 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
    sathyan_8294
    wrote on last edited by
    #1

    hai all, i am using dotnet 2005.i doing my project in vb.net windows application. Is it possible to generate serial number in datagridview.if possible means,i want to generate serial number in datagridview by descending order in windows application,not in web application.

    M C 2 Replies Last reply
    0
    • S sathyan_8294

      hai all, i am using dotnet 2005.i doing my project in vb.net windows application. Is it possible to generate serial number in datagridview.if possible means,i want to generate serial number in datagridview by descending order in windows application,not in web application.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Sure, you have complete control available to you. However you should make the changes in your datasource not the datagridview. IE when you add a row make the change at the row level. Beware if you are adding an "identity" value that is not controlled by your datasource (database) you are asking for trouble.

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • S sathyan_8294

        hai all, i am using dotnet 2005.i doing my project in vb.net windows application. Is it possible to generate serial number in datagridview.if possible means,i want to generate serial number in datagridview by descending order in windows application,not in web application.

        C Offline
        C Offline
        chandralekha
        wrote on last edited by
        #3

        For doing that in the DataAdapter you add a column.Let its name be sno.Then you change the autoincrement property of that column to true.Set auto incrementSeed as a number(For ex: 0) from which number you want to start numbering.Change datatype to System.Int64. While binding the datagrid with that adapter the column numbers will come..

        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