Click here to Skip to main content
16,005,178 members
Home / Discussions / C#
   

C#

 
QuestionHow to print Datagrid in C# ? Pin
hdv2125-Oct-06 0:07
hdv2125-Oct-06 0:07 
QuestionHow to read a exact line from .txt file Pin
CodeItWell4-Oct-06 23:47
CodeItWell4-Oct-06 23:47 
AnswerRe: How to read a exact line from .txt file Pin
Christian Graus5-Oct-06 0:56
protectorChristian Graus5-Oct-06 0:56 
QuestionDataGridView update to database fails Pin
Alex.Suelzle4-Oct-06 23:46
Alex.Suelzle4-Oct-06 23:46 
AnswerRe: DataGridView update to database fails Pin
topcatalpha5-Oct-06 1:22
topcatalpha5-Oct-06 1:22 
GeneralRe: DataGridView update to database fails Pin
Alex.Suelzle5-Oct-06 20:21
Alex.Suelzle5-Oct-06 20:21 
GeneralRe: DataGridView update to database fails Pin
topcatalpha5-Oct-06 20:37
topcatalpha5-Oct-06 20:37 
GeneralRe: DataGridView update to database fails Pin
Alex.Suelzle5-Oct-06 21:41
Alex.Suelzle5-Oct-06 21:41 
Hi,

I put the code inside and also debug them, looks like your sample;
try<br />
{<br />
  if (this.Validate() == false){<br />
      MessageBox.Show("Validation is false verify your input!");<br />
      return;<br />
  }<br />
  this.devicesBindingSource.EndEdit();<br />
  VideoStreamsDataSet.DevicesDataTable Tmp_datatable = new VideoStreamsDataSet.DevicesDataTable();<br />
  Tmp_datatable = VideoStreamsDataSet.DevicesDataTable)this.videoStreamsDataSet.Devices.GetChanges();<br />
  this.devicesTableAdapter.Update(Tmp_datatable);<br />
  MessageBox.Show("Update successful");<br />
}<br />
catch (System.Exception ex){<br />
  MessageBox.Show("Update failed");<br />
}

If I add a new row the values will update and displayed at the DataGridView. But also if I close the application and restart, I could see the data isn't stored at database.

If I modify a row so I catch an exeption calling me this:
Parallelitätsverletzung : Der UpdateCommand hat sich auf 0 der erwarteten 1 Datensätze ausgewirkt.
means:
parallel violation: The UpdateCommand has got 0 of expected 1 data record affected.

Did you have some idea or maybe some complete smale sample that's works correct. I'm much more than frustrated.

Thanks alex
GeneralRe: DataGridView update to database fails Pin
topcatalpha5-Oct-06 21:48
topcatalpha5-Oct-06 21:48 
AnswerRe: DataGridView update to database fails Pin
Alex.Suelzle5-Oct-06 22:42
Alex.Suelzle5-Oct-06 22:42 
QuestionEEException ?! Pin
Jon Hulatt4-Oct-06 23:37
Jon Hulatt4-Oct-06 23:37 
AnswerRe: EEException ?! Pin
Christian Graus5-Oct-06 1:03
protectorChristian Graus5-Oct-06 1:03 
GeneralRe: EEException ?! Pin
Jon Hulatt5-Oct-06 1:12
Jon Hulatt5-Oct-06 1:12 
GeneralRe: EEException ?! Pin
Christian Graus5-Oct-06 9:15
protectorChristian Graus5-Oct-06 9:15 
QuestionDll Security. Pin
subrata.jana4-Oct-06 23:33
subrata.jana4-Oct-06 23:33 
AnswerRe: Dll Security. Pin
aamironline5-Oct-06 0:29
aamironline5-Oct-06 0:29 
GeneralRe: Dll Security. Pin
subrata.jana5-Oct-06 0:55
subrata.jana5-Oct-06 0:55 
QuestionCustomising the SortedArray class Pin
Sreerag Gopinath4-Oct-06 23:21
Sreerag Gopinath4-Oct-06 23:21 
AnswerRe: Customising the SortedArray class Pin
Christian Graus5-Oct-06 1:05
protectorChristian Graus5-Oct-06 1:05 
QuestionC#, .NET 1.1 and the WS_DISABLED window style Pin
ssozonoff4-Oct-06 22:35
ssozonoff4-Oct-06 22:35 
Questiongettting table name Pin
saqib824-Oct-06 21:27
saqib824-Oct-06 21:27 
AnswerRe: gettting table name Pin
albCode4-Oct-06 21:40
albCode4-Oct-06 21:40 
GeneralRe: gettting table name Pin
saqib824-Oct-06 21:44
saqib824-Oct-06 21:44 
GeneralRe: gettting table name Pin
albCode4-Oct-06 21:59
albCode4-Oct-06 21:59 
GeneralRe: gettting table name Pin
saqib824-Oct-06 23:37
saqib824-Oct-06 23:37 

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.