Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to force numeric entry?
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00746296
Message ID:
00748580
Views:
25
I'm using CommandBuilder !

Is there a way to re-fresh the opened DataSet?


>You are experiencing this because of your SQL Update statement. Your statements must be able to handle concurrency issues. I would recommend using store procedures to perform your updates. You will have better control over how the updates occur.
>
>>Thank u Cathi,
>>
>>But I having this error,
>>"Error #5, Concurrency Violation:..."
>>and this happen when I add the new row then update my DS then try to modify it again!
>>I this I should Re-Fresh or Re-Fill the DS, if yes, that means I should do the Re-Fill after each add, delete or modify operation I do?
>>And will this code do the job:
>>
>> ' Update DataSet
>> Me.BindingContext(myDS, "Area").EndCurrentEdit()
>> myDA.Update(myDS, "Area")
>> myDS.AcceptChanges()
>>
>> ' Re-Fresh DataSet
>> myDS.Clear()
>> myDA.Fill(myDS, "TableName")
>>
>>Thanks again
<><><><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><><><>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform