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

Visual Studio / App Hanging on GridView

2 Answers 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael Chancey
Top achievements
Rank 1
Michael Chancey asked on 07 Jan 2009, 04:03 AM
When trying to add a GridViewTextBoxColumn to my gridview control through the property builder my Visual Studio Devenv becomes completely unresponsive.  When adding it through code the program completely locks up.  No error just CPU usage to 50% steady and nothing else happens.  Below is how the column is created and added on my other Dev box and was created by the property builder.  I dont actually beleive it is a version problem because if I create a new form add the gridview to it and try to add a column my UI freezes so if it were a version issue then the entire version I have would be broke.

Note...
I have removed and re-installed the controls twice with the same effect both times.  Version 8.1.0.0

......
Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn13 = new Telerik.WinControls.UI.GridViewTextBoxColumn();

gridViewTextBoxColumn13.FieldName = "ProjectName";
gridViewTextBoxColumn13.HeaderText = "Project Name";
gridViewTextBoxColumn13.HeaderTextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
gridViewTextBoxColumn13.IsVisible = false;
gridViewTextBoxColumn13.UniqueName = "ProjectName";
gridViewTextBoxColumn13.Width = 5;

this.radGridFileList.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn13);
.........

2 Answers, 1 is accepted

Sort by
0
Michael Chancey
Top achievements
Rank 1
answered on 07 Jan 2009, 04:36 AM
After commenting 1 line out at a time from the designer file I narrowed the error down to this line.  Uncomment that line and the app or deven totally hangs after inserting a column into the control.


this.radGridFileList.MasterGridViewTemplate.VerticalScrollState = Telerik.WinControls.UI.ScrollState.AlwaysShow;
0
Nick
Telerik team
answered on 07 Jan 2009, 12:54 PM
Hi Michael Chancey,

Thank you for your inquiry. This is a known issue and it will be addressed in the upcoming Q3 2008 SP2, scheduled to be released this month. Please excuse us for the introduced inconvenience in the meantime.

Do not hesitate to contact me back if you have further questions.

Regards,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Michael Chancey
Top achievements
Rank 1
Answers by
Michael Chancey
Top achievements
Rank 1
Nick
Telerik team
Share this question
or