Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
AnswerRe: Write to PDF file Pin
Christian Graus12-Jun-08 5:10
protectorChristian Graus12-Jun-08 5:10 
QuestionTimeSpan beginners question Pin
NewToAspDotNet12-Jun-08 3:45
NewToAspDotNet12-Jun-08 3:45 
AnswerRe: TimeSpan beginners question Pin
Simon P Stevens12-Jun-08 3:57
Simon P Stevens12-Jun-08 3:57 
QuestionHow to Remove the Duplicate Key(Repeated data) in CSV or Excel file using C# . Pin
bruze12-Jun-08 2:38
bruze12-Jun-08 2:38 
AnswerRe: How to Remove the Duplicate Key(Repeated data) in CSV or Excel file using C# . Pin
Simon P Stevens12-Jun-08 4:02
Simon P Stevens12-Jun-08 4:02 
GeneralRe: How to Remove the Duplicate Key(Repeated data) in CSV or Excel file using C# . Pin
bruze12-Jun-08 4:22
bruze12-Jun-08 4:22 
AnswerRe: How to Remove the Duplicate Key(Repeated data) in CSV or Excel file using C# . Pin
Russell Jones12-Jun-08 5:39
Russell Jones12-Jun-08 5:39 
QuestionTableAdapter.Update() problem. Pin
hdv21212-Jun-08 2:12
hdv21212-Jun-08 2:12 
hi in my solution, i created a table adapter and set select,insert,update,delete actions to my own stored procedures, then for add row, write the following code :

FrmCategory frm = new FrmCategory(false, false);
DsStack.CategoriesRow newRow = this.dt.NewCategoriesRow();
Session.SaveInSession("newCategory", newRow);
if (frm.ShowDialog() == DialogResult.OK)
{
   newRow = Session.LoadFromSession("newCategory") as DsStack.CategoriesRow;
   this.dt.Rows.Add(newRow);
   this.adapter.Update(this.dt); // error occured in this line
}


When my table in database is empty :
the first row add to table successfully, but the second row has not been add to database and the following error has shown me :
Concurrency violation: the UpdateCommand affected 0 of the expected 1 records.

where does my problem and how to solve it ?
thanks
AnswerRe: TableAdapter.Update() problem. Pin
Shorgov12-Jun-08 3:38
Shorgov12-Jun-08 3:38 
AnswerRe: TableAdapter.Update() problem. Pin
alex.almeida12-Jun-08 4:46
alex.almeida12-Jun-08 4:46 
GeneralRe: TableAdapter.Update() problem. Pin
hdv21212-Jun-08 7:19
hdv21212-Jun-08 7:19 
GeneralRe: TableAdapter.Update() problem. Pin
alex.almeida19-Jun-08 4:23
alex.almeida19-Jun-08 4:23 
GeneralRe: TableAdapter.Update() problem. Pin
hdv21219-Jun-08 6:53
hdv21219-Jun-08 6:53 
QuestionConverting DOC files to PDF using C# Pin
Renukapadhamanaban12-Jun-08 2:10
Renukapadhamanaban12-Jun-08 2:10 
AnswerRe: Converting DOC files to PDF using C# -DUPLICATE POST Pin
Ashfield12-Jun-08 3:44
Ashfield12-Jun-08 3:44 
QuestionMulti threading, Timers Pin
koleraba12-Jun-08 1:52
koleraba12-Jun-08 1:52 
AnswerRe: Multi threading, Timers Pin
Jimmanuel12-Jun-08 2:59
Jimmanuel12-Jun-08 2:59 
GeneralRe: Multi threading, Timers Pin
koleraba12-Jun-08 4:42
koleraba12-Jun-08 4:42 
GeneralRe: Multi threading, Timers Pin
Jimmanuel12-Jun-08 5:09
Jimmanuel12-Jun-08 5:09 
GeneralRe: Multi threading, Timers Pin
koleraba13-Jun-08 8:18
koleraba13-Jun-08 8:18 
GeneralRe: Multi threading, Timers Pin
Jimmanuel13-Jun-08 8:40
Jimmanuel13-Jun-08 8:40 
QuestionCrystall report Pin
mikobi12-Jun-08 1:19
mikobi12-Jun-08 1:19 
AnswerRe: Crystall report Pin
Harvey Saayman12-Jun-08 2:09
Harvey Saayman12-Jun-08 2:09 
GeneralRe: Crystall report Pin
mikobi12-Jun-08 3:35
mikobi12-Jun-08 3:35 
GeneralRe: Crystall report Pin
Harvey Saayman12-Jun-08 3:41
Harvey Saayman12-Jun-08 3:41 

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.