System.ComponentModel.LookupBindingProperties Example -
01-13-2006
, 04:56 AM
I've tried invain to build the databinding example described in "Walkthrough:
Creating a User Control that Supports Lookup Databinding"
(http://msdn2.microsoft.com/en-us/library/ms233787.aspx).
I followed all passages of the article, but when I Drag the Orders node from
the Data Sources window onto the Windows Form and build the code the
following error appears in an error window that appears in place of the Form
Design:
"One or more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes. "
Cannot set the SelectedValue in a ListControl with an empty ValueMember.
at System.ComponentModel.ReflectPropertyDescriptor.Se tValue(Object
component, Object value)
at
System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeAssignStatement(IDesigne rSerializationManager
manager, CodeAssignStatement statement)
at
System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeStatement(IDesignerSeria lizationManager manager, CodeStatement statement)
Have you any suggestions?
Best Regards
--
Domenico Mozzone |