This is a migrated thread and some comments may be shown as answers.

Column layout changes when rebinding in 2009 Q1

4 Answers 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Per
Top achievements
Rank 1
Per asked on 08 Apr 2009, 11:51 AM
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


4 Answers, 1 is accepted

Sort by
0
Per
Top achievements
Rank 1
answered on 08 Apr 2009, 04:17 PM
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
0
Nick
Telerik team
answered on 10 Apr 2009, 03:48 PM
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.
0
kultman
Top achievements
Rank 2
answered on 28 May 2009, 05:59 PM
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
0
Nick
Telerik team
answered on 29 May 2009, 07:59 AM
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.
Tags
GridView
Asked by
Per
Top achievements
Rank 1
Answers by
Per
Top achievements
Rank 1
Nick
Telerik team
kultman
Top achievements
Rank 2
Share this question
or