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. Datagrid

Datagrid

Scheduled Pinned Locked Moved Visual Basic
databasequestion
3 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.
  • Z Offline
    Z Offline
    zareee
    wrote on last edited by
    #1

    hi, I am using datagrid in my apps.Using datasource property i have binded the datagrid with the dataset.So datagrid will have its items diaplayed in the same column order as that of in database.Is it possible to swap the columns? Ex: If my table contains Id,Name,Age My datagrid should display its item in the order Name,Id,Age

    zari

    R 1 Reply Last reply
    0
    • Z zareee

      hi, I am using datagrid in my apps.Using datasource property i have binded the datagrid with the dataset.So datagrid will have its items diaplayed in the same column order as that of in database.Is it possible to swap the columns? Ex: If my table contains Id,Name,Age My datagrid should display its item in the order Name,Id,Age

      zari

      R Offline
      R Offline
      Rupesh Kumar Swami
      wrote on last edited by
      #2

      hi Zareee change the order of fields into query as following & then bind to datagrid "select name,id,age from table" hope this helps

      Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India)

      Z 1 Reply Last reply
      0
      • R Rupesh Kumar Swami

        hi Zareee change the order of fields into query as following & then bind to datagrid "select name,id,age from table" hope this helps

        Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India)

        Z Offline
        Z Offline
        zareee
        wrote on last edited by
        #3

        thnk u it works!!!

        zari

        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