Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Temporarily release restrictions
Message
From
22/12/2006 11:50:07
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01179749
Message ID:
01179772
Views:
6
I guess u can try something like the following
Dim relation As DataRelation
For Each relation In dsdata.Relations
    relation.ChildKeyConstraint.AcceptRejectRule = AcceptRejectRule.None
    relation.ChildKeyConstraint.DeleteRule = Rule.None
    relation.ChildKeyConstraint.UpdateRule = Rule.None
Next relation
then you can put back the constarints.

>I have not changed the constraints to anything at runtime yet, that is what I am trying to do.
>
>>Einar did you try to change the constraints to none and when finished change it back to whatever it was?
>>
>>>How can I at runtime change all my relations in my dataset from "Both relation and foreign key constraint" to "Relation only"? (don't worry I will change it back later <s>)
>>>
>>>Thanks,
>>>Einar
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform