Bug in DataGridView - invisible column turns visible...???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Johnny Jörgensen

    #1

    Bug in DataGridView - invisible column turns visible...???

    In my current project I've got some DataGridViews containing multiple hidden
    columns.

    For some reason 8 of the 10 grids I've got on my form has suddenly started
    showing 1 of the hidden columns (not all of them). If I look at the grids in
    the designer, the columns ARE invisible, but still they're shown at runtime.

    I cannot figure out why. I've searched the entire project to see if I could
    find any code setting the columns visible, but there isn't any.

    Has anybody got a suggestion?

    Cheers,
    Johnny J.


  • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

    #2
    RE: Bug in DataGridView - invisible column turns visible...???

    Can you post a simple but functional code sample to illustrate your issue?
    Peter
    --
    Recursion: see Recursion
    site: http://www.eggheadcafe.com
    unBlog: http://petesbloggerama.blogspot.com
    bogMetaFinder: http://www.blogmetafinder.com



    "Johnny Jörgensen" wrote:
    In my current project I've got some DataGridViews containing multiple hidden
    columns.
    >
    For some reason 8 of the 10 grids I've got on my form has suddenly started
    showing 1 of the hidden columns (not all of them). If I look at the grids in
    the designer, the columns ARE invisible, but still they're shown at runtime.
    >
    I cannot figure out why. I've searched the entire project to see if I could
    find any code setting the columns visible, but there isn't any.
    >
    Has anybody got a suggestion?
    >
    Cheers,
    Johnny J.
    >
    >
    >

    Comment

    • Johnny Jörgensen

      #3
      Re: Bug in DataGridView - invisible column turns visible...???

      Not really, I tried posting screenshots though, but OE wouldn't let me do
      that. Said the post was too large... :-(

      I've got a Tab control with five tabs. On each tab I have 2 DataGridView
      controls that are EXACTLY the same (the only difference is the displayed
      data). All data comes from the same table but are filtered out into the 10
      DataGridViews.

      On the first tab everything is ok with the two DataGridViews, but on the 4
      other tabs, the first column containing the ID is visible in both grids, and
      if I check the designer properties, visible IS set to False for the columns.

      I've tried searching the entire code and the visible property isn't changed
      ANYWHERE (which I should also know seeing that I'm the only one developing
      this application).

      Strangely enough, sometimes it helps closing down Visual Studio and opening
      it again. so it seems to be a VS problem more than a code problem.

      As I said: I don't understand it...

      Cheers,
      Johhny J.



      "Peter Bromberg [C# MVP]" <pbromberg@yaho o.yohohhoandabo ttleofrum.comwr ote
      in message news:D8FE3A87-E014-4BB3-B6EA-82996C0424A9@mi crosoft.com...
      Can you post a simple but functional code sample to illustrate your issue?
      Peter
      --
      Recursion: see Recursion
      site: http://www.eggheadcafe.com
      unBlog: http://petesbloggerama.blogspot.com
      bogMetaFinder: http://www.blogmetafinder.com





      Comment

      Working...