Column layout changes when rebinding in 2009 Q1

5 posts, 0 answers
  1. Per
    Per avatar
    116 posts
    Member since:
    Jan 2008

    Posted 08 Apr 2009 Link to this post

    Hi!

    Today I uppgraded to Q1 2009 (from Q3 2008)

    Before I upgraded all my grids were working fine but after the upgrade my grid layouts changes after I rebind the grid.
    Am I missing something or is this a bug?

    Heres what happens:
    1) I have a rad grid that is connected to a datasource
    2) I open the rad grids property builder and select visible=false on the 2 first columns in the list
    3) I press OK, now the 2 first columns are not visible in the VS IDE
    4) I run the program and the 2 first columns are still hiden, perfect
    5) I now press a button that binds the datasource to a list of object
    6) What happens now is that every settings that I made in the property builder is gone and all columns in my objects are displayed!!!

    It's like it do a "auto create columns"

    Please tell me that im missing something..

    Regards
    Per


  2. Per
    Per avatar
    116 posts
    Member since:
    Jan 2008

    Posted 08 Apr 2009 Link to this post

    I found the problem.

    For some reason, I need to add the following line to my code after uppgrading to version Q1 2009

    this.radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false

    Regards,
    per
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nick
    Admin
    Nick avatar
    767 posts

    Posted 10 Apr 2009 Link to this post

    Hello Per,

    Thank you for sharing your solution with the community.

    All the best,
    Nick
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  5. kultman
    kultman avatar
    35 posts
    Member since:
    Sep 2006

    Posted 28 May 2009 Link to this post

    That's not a solution - that's a workaround for a bug.

    Or is that how Grids are supposed to behave now? Would be nice to get that info in the release notes, so we don't have to waste hours on a 'small' problem like that.

    /Dan
  6. Nick
    Admin
    Nick avatar
    767 posts

    Posted 29 May 2009 Link to this post

    Hi kultman,

    Thank you for your feedback. We will try to include all breaking changes in our release notes in future.

    Please excuse us for the introduced inconvenience.

    Greetings,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for WinForms is Visual Studio 2017 Ready