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

Breaking changes with Grid in Q1 2011?

1 Answer 112 Views
GridView
This is a migrated thread and some comments may be shown as answers.
rjmorton
Top achievements
Rank 1
rjmorton asked on 24 May 2011, 08:35 PM
Did something change in the Q1 2011 release for datagrid that causes breaking changes?
I just upgraded today, fired up a project that has been compiling and working flawlessly and I'm getting a huge amount of compilation errors around the Grid control.

The main one that is significant is the following snippet:
GridViewDataColumn oColorName = new GridViewDataColumn();
oColorName.UniqueName = "ColorName";
oColorName.HeaderText = "Color Name";
radGridReport.Columns.Insert(6, oColorName);

I'm getting a red squiggly under the 'new GridViewDataColumn()' with the following error:
"Cannot create an instance of the abstract class or interface 'Telerik.WinControls.UI.GridViewDataColumn'"

1 Answer, 1 is accepted

Sort by
0
rjmorton
Top achievements
Rank 1
answered on 24 May 2011, 10:49 PM
Nevermind - seems we can't call:
GridViewDataColumn oColorName = new GridViewDataColumn(); 
directly anymore - need to use something like
GridViewDataColumn oColorName = new GridViewTextBoxColumn(); 

instead.


sigh.....
Tags
GridView
Asked by
rjmorton
Top achievements
Rank 1
Answers by
rjmorton
Top achievements
Rank 1
Share this question
or