Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataReleation Error!
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00751078
Message ID:
00754645
Views:
12
Hi Cathi,

I fixed the datarelation problem. But it’s spoiling my databinding, when I add this line to my datagrid:
Me.dgMeasurements.SetDataBinding(myDS, "Member.MemMsr")

This is the code, I think I am missing somethign some where??


myDA.Fill(myDS, "Member")
myMeasureDA.Fill(myDS, "Measure")

‘ Add DataRelation the DataSet
myDS.Relations.Add("MemMsr", myDS.Tables("Member").Columns("MemberID"), myDS.Tables("Measure").Columns("MemberID"))

' cbSelect Member DataSource
Me.cbSelect.DataSource = myDS.Tables("Member")
Me.cbSelect.DisplayMember = "MemberID"

‘ Bind data in the first window form
Me.txtMemberName_e.DataBindings.Add("Text", myDS.Tables("Member"), "Name_e")

Me.dgMeasurements.DataSource = myDS.Tables("Measure")

‘ the next line is spoiling my next databinding
Me.dgMeasurements.SetDataBinding(myDS, "Member.MemMsr")

‘ bind the 2nd window form (*** this binding get spoiled ***)
Me.txtWeight.DataBindings.Add("Text", myDS.Tables("Measure"), "Weight")
Me.txtHeight.DataBindings.Add("Text", myDS.Tables("Measure"), "Height")

Thanks for the help
<><><><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><><><>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform