Click here to Skip to main content
15,908,661 members
Home / Discussions / C#
   

C#

 
GeneralRe: Custom Button Background Pin
Anthony Mushrow13-Nov-06 12:44
professionalAnthony Mushrow13-Nov-06 12:44 
QuestionCan't save after importing Access file Pin
Bjorn240413-Nov-06 7:42
Bjorn240413-Nov-06 7:42 
AnswerRe: Can't save after importing Access file Pin
George L. Jackson13-Nov-06 8:33
George L. Jackson13-Nov-06 8:33 
QuestionEditing File Properties Pin
digital_loser13-Nov-06 6:22
digital_loser13-Nov-06 6:22 
QuestionApplication.Run(new Form1()); Error Code Pin
Blekk13-Nov-06 6:10
Blekk13-Nov-06 6:10 
AnswerRe: Application.Run(new Form1()); Error Code Pin
Jon Hulatt13-Nov-06 6:28
Jon Hulatt13-Nov-06 6:28 
GeneralRe: Application.Run(new Form1()); Error Code Pin
Blekk13-Nov-06 6:30
Blekk13-Nov-06 6:30 
QuestionConcurrency violation Pin
Nadia Monalisa13-Nov-06 5:55
Nadia Monalisa13-Nov-06 5:55 
Hi,
In my C# Win form (.NET 2.0 - VS 2005), I have 4 datagridviews which are filled by 5 different data tables.
these data tables are directly filled by 5 different SQL Server Everywhere Tables.

Now, Placed all Table Saving Codes within a single method event handler for the save button.
Like this,

private void saveAll()<br />
{<br />
this.Validate();<br />
this.myBindingSource1.EndEdit();<br />
this.myDataSet.MytableAdapter1.Update(.....);<br />
<br />
this.validate();<br />
this.myBindingSource2.EndEdit();<br />
this.myDataSet.MytableAdapter2.Update(.....);<br />
<br />
this.validate();<br />
this.myBindingSource3.EndEdit();<br />
this.myDataSet.MytableAdapter3.Update(.....);<br />
}


Now, When I call the save method, most of the time, I get Error with the message "Concurrency Violation."
Is there any way I can get rid of this problem ?

Thanks in advance,
Emran
AnswerRe: Concurrency violation Pin
ednrgc13-Nov-06 9:01
ednrgc13-Nov-06 9:01 
GeneralRe: Concurrency violation Pin
Nadia Monalisa13-Nov-06 13:09
Nadia Monalisa13-Nov-06 13:09 
GeneralRe: Concurrency violation Pin
ednrgc14-Nov-06 2:50
ednrgc14-Nov-06 2:50 
GeneralRe: Concurrency violation Pin
Nadia Monalisa14-Nov-06 3:35
Nadia Monalisa14-Nov-06 3:35 
Questionhow to use saveFileDialog Pin
veluru krishna13-Nov-06 5:27
veluru krishna13-Nov-06 5:27 
AnswerRe: how to use saveFileDialog Pin
Jamie Nordmeyer13-Nov-06 5:38
Jamie Nordmeyer13-Nov-06 5:38 
GeneralRe: how to use saveFileDialog Pin
Blekk13-Nov-06 6:35
Blekk13-Nov-06 6:35 
GeneralRe: how to use saveFileDialog Pin
Jamie Nordmeyer13-Nov-06 6:40
Jamie Nordmeyer13-Nov-06 6:40 
GeneralRe: how to use saveFileDialog Pin
Blekk13-Nov-06 6:46
Blekk13-Nov-06 6:46 
GeneralRe: how to use saveFileDialog Pin
Jamie Nordmeyer13-Nov-06 6:52
Jamie Nordmeyer13-Nov-06 6:52 
GeneralRe: how to use saveFileDialog Pin
Blekk13-Nov-06 6:58
Blekk13-Nov-06 6:58 
GeneralRe: how to use saveFileDialog Pin
Jamie Nordmeyer13-Nov-06 7:01
Jamie Nordmeyer13-Nov-06 7:01 
GeneralRe: how to use saveFileDialog Pin
Blekk13-Nov-06 6:47
Blekk13-Nov-06 6:47 
GeneralRe: how to use saveFileDialog Pin
Nadia Monalisa13-Nov-06 6:53
Nadia Monalisa13-Nov-06 6:53 
GeneralRe: how to use saveFileDialog Pin
Jamie Nordmeyer13-Nov-06 7:03
Jamie Nordmeyer13-Nov-06 7:03 
GeneralRe: how to use saveFileDialog Pin
veluru krishna14-Nov-06 5:21
veluru krishna14-Nov-06 5:21 
GeneralRe: how to use saveFileDialog Pin
Jamie Nordmeyer14-Nov-06 5:43
Jamie Nordmeyer14-Nov-06 5:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.