OK, I have a workaround, but really don't know why it works this way.
The workaround is the following :
1. Bind graphically the control to : "Table1.Field1",
2. Edit auto-generated code to update to :
this.txtBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text",
this.myDS, "Table1.ChildRelation1.ChildField1"));
3. Now graphically, we can bind level 1 filds....

Strange, isn't it ?!

Cedric

-----Original Message-----
From: The DOTNET list will be retired 7/1/02
[mailto:[EMAIL PROTECTED]] On Behalf Of Cédric Dardenne
Sent: Tuesday, June 04, 2002 2:25 PM
To: [EMAIL PROTECTED]
Subject: [DOTNET] DataSet Binding in Winform


Hi all,

I'm trying to bind controls at design time in a winform from a dataset.
It works fine when in the control's (for instance textbox) properties I
select a column in a root table. But ! When I select a field from a root
table's child relation, I get a "Invalid property value"...

Didn't get anything from archives (maybe my search was not accurate)...
I think it must be really simple ! BTW, the DataSet is auto-generated
from a XML Schema...

Thanks for your help !!

Cedric


------------------------------------------------------------------------
-------------
Programming today is a race between software engineers
striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning.
-- Rich Cook

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to