Hello,
I attempted to use the demo project included in your reply. I'm using VS 2012 and 2013 Q2 of the Telerik RadControls (2013.2.724.40).
When I attempt to view Form1 in the designer, it does not display but instead it shows a "To prevent possible data loss before loading the designer, the following errors
must be resolved" page with two errors. the first is:
"Object reference not set to an instance of an object" with a call stack of:
at Telerik.WinControls.UI.Design.RadGridViewDesigner.Initialize(IComponent
component)
at
System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent
component, String name, IContainer containerToAddTo)
at
System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component,
String name)
at
System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type
componentType, String name)
at
System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type
type, ICollection arguments, String name, Boolean addToContainer)
at
System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type
type, ICollection arguments, String name, Boolean addToContainer)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager
manager, Type type, Object[] parameters, String name, Boolean
addToContainer)
at
Telerik.WinControls.UI.Design.RadControlCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager
manager, Type type, Object[] parameters, String name, Boolean
addToContainer)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager
manager, String name, CodeExpression expression)
at
System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager
manager, CodeStatement statement)
at
Telerik.WinControls.UI.Design.RadControlCodeDomSerializer.Deserialize(IDesignerSerializationManager
manager, Object codeObject)
at
System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager
manager, String name, CodeStatementCollection statements)
The second error:
"The variable 'radGridView1' is either undeclared or was never assigned."
I think this appears to happen because of the first since it clearly is declared in the designer cs:
private Telerik.WinControls.UI.RadGridView radGridView1;
and instantiated:
this.radGridView1 = new Telerik.WinControls.UI.RadGridView();
I appreciate any guidance in resolving this.
Patrick