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. Datagridview in Vista

Datagridview in Vista

Scheduled Pinned Locked Moved C#
databasehelpquestion
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.
  • R Offline
    R Offline
    ramzg
    wrote on last edited by
    #1

    Hi, I have a DataGridView in my application which is bound to a BindingList... The control works perfectly when I use it in XP... But when I deploy the same application in Vista, some of the columns of the DataGridView interchange with each other and not in the order that I would want it to display... Can anyone tell me what could be done to have the DataGridView show columns in just the order it was while I designed? I've tried to explicitly specify the column's display index for each of the columns, but no luck.. :( Please note that this problem occurs only in Vista... It works fine in XP... Thanks, ramzg

    S 1 Reply Last reply
    0
    • R ramzg

      Hi, I have a DataGridView in my application which is bound to a BindingList... The control works perfectly when I use it in XP... But when I deploy the same application in Vista, some of the columns of the DataGridView interchange with each other and not in the order that I would want it to display... Can anyone tell me what could be done to have the DataGridView show columns in just the order it was while I designed? I've tried to explicitly specify the column's display index for each of the columns, but no luck.. :( Please note that this problem occurs only in Vista... It works fine in XP... Thanks, ramzg

      S Offline
      S Offline
      Saksida Bojan
      wrote on last edited by
      #2

      Did you try to set compability to XP? Are you using SQL commands? Are the columns created programaticly or in design?

      R 1 Reply Last reply
      0
      • S Saksida Bojan

        Did you try to set compability to XP? Are you using SQL commands? Are the columns created programaticly or in design?

        R Offline
        R Offline
        ramzg
        wrote on last edited by
        #3

        Hi Saksida... Thanks for the reply.. Here are my replies to your queries... Did you try to set compability to XP? My application is compatible with XP... The problem occurs only when i run it on Vista.. And I dint set the compatibility explicitly... Are you using SQL commands? No, I'm not using any SQL commands. Are the columns created programaticly or in design? The columns were created at design time and values are added to them at runtime.. Thanks, ramzg

        S 1 Reply Last reply
        0
        • R ramzg

          Hi Saksida... Thanks for the reply.. Here are my replies to your queries... Did you try to set compability to XP? My application is compatible with XP... The problem occurs only when i run it on Vista.. And I dint set the compatibility explicitly... Are you using SQL commands? No, I'm not using any SQL commands. Are the columns created programaticly or in design? The columns were created at design time and values are added to them at runtime.. Thanks, ramzg

          S Offline
          S Offline
          Saksida Bojan
          wrote on last edited by
          #4

          I am currently reading on MSDN, try AutoGenerateColumns set to false EDIT: Oh yeah that was your post on MSDN

          R 1 Reply Last reply
          0
          • S Saksida Bojan

            I am currently reading on MSDN, try AutoGenerateColumns set to false EDIT: Oh yeah that was your post on MSDN

            R Offline
            R Offline
            ramzg
            wrote on last edited by
            #5

            Yup, It was indeed my post... I'm yet to try it on vista... Will get back to you after I try it out... :)

            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