Click here to Skip to main content
15,898,538 members
Home / Discussions / C#
   

C#

 
GeneralRe: Everything you need for email in c# here.. Pin
Member 9613-Aug-03 6:58
Member 9613-Aug-03 6:58 
QuestionMySQL class? Pin
zamazula18-Mar-03 13:02
zamazula18-Mar-03 13:02 
AnswerRe: MySQL class? Pin
Nathan Blomquist18-Mar-03 13:58
Nathan Blomquist18-Mar-03 13:58 
GeneralRe: MySQL class? Pin
insomnious19-Mar-03 0:41
insomnious19-Mar-03 0:41 
GeneralDB and GUI coupling Pin
bpgc18-Mar-03 12:18
bpgc18-Mar-03 12:18 
GeneralSystem ShutDown... Pin
Gogou18-Mar-03 10:54
Gogou18-Mar-03 10:54 
GeneralRe: System ShutDown... Pin
Chris Jobson19-Mar-03 10:03
Chris Jobson19-Mar-03 10:03 
GeneralDBConcurrencyException: Delete a entry in master -detail table Pin
DionChen18-Mar-03 10:17
DionChen18-Mar-03 10:17 
Hi, all:

I have a master-detail relationship in my MS Access DB. In my WinForm application, I also created same Master-Detail relationship in my dataset. When I delete a row in my datagrid, the entries in the detail table is also deleted in the dataset due to the relationship. After an user finishs editing the data, I call daMaster.Update and then daDetail.Update. I got the DBConcurrencyException when trying to update the detail table. I think the reason is as following: when the master table is updated, it deletes the row marked with "Deleted". Since the relationship is setup in the MS Access DB, it deletes the entries in the detail table of Access DB. When the second Update is called, the record is gone and exception is thrown.

How do I fix this problem? I can not change the order of update, otherwise it will break the new entries ( must exist in the Master table first ). I guess that if I take all the relationship out in the MS Access DB, it will work fine, but I think that probably is not good thing to do.

Please help. Thanks in advance.

Dion

QuestionHow to use GetNativeVariantForObject Pin
Preben Rasmussen18-Mar-03 9:49
Preben Rasmussen18-Mar-03 9:49 
QuestionHow to retrieve a value from hidden fields in a dataGrid? Pin
zoltix18-Mar-03 7:49
zoltix18-Mar-03 7:49 
AnswerRe: How to retrieve a value from hidden fields in a dataGrid? Pin
zoltix18-Mar-03 7:51
zoltix18-Mar-03 7:51 
Questioncustom editors in property grid?? Pin
LongRange.Shooter18-Mar-03 7:00
LongRange.Shooter18-Mar-03 7:00 
AnswerRe: custom editors in property grid?? Pin
leppie18-Mar-03 9:36
leppie18-Mar-03 9:36 
GeneralRe: custom editors in property grid?? Pin
LongRange.Shooter18-Mar-03 10:31
LongRange.Shooter18-Mar-03 10:31 
GeneralRe: custom editors in property grid?? Pin
LongRange.Shooter19-Mar-03 5:39
LongRange.Shooter19-Mar-03 5:39 
GeneralRe: custom editors in property grid?? Pin
LongRange.Shooter19-Mar-03 5:53
LongRange.Shooter19-Mar-03 5:53 
QuestionDeal with DateTime like a taskmanager would do it? Pin
Chris Richner18-Mar-03 3:18
Chris Richner18-Mar-03 3:18 
AnswerRe: Deal with DateTime like a taskmanager would do it? Pin
Stephane Rodriguez.18-Mar-03 3:29
Stephane Rodriguez.18-Mar-03 3:29 
GeneralRe: Deal with DateTime like a taskmanager would do it? Pin
Chris Richner18-Mar-03 3:48
Chris Richner18-Mar-03 3:48 
AnswerRe: Deal with DateTime like a taskmanager would do it? Pin
leppie18-Mar-03 9:42
leppie18-Mar-03 9:42 
QuestionGenerate an xml file with StringWriter(UTF-8) ?? Pin
zoltix17-Mar-03 23:39
zoltix17-Mar-03 23:39 
AnswerRe: Generate an xml file with StringWriter(UTF-8) ?? Pin
Stephane Rodriguez.18-Mar-03 1:17
Stephane Rodriguez.18-Mar-03 1:17 
GeneralRe: Generate an xml file with StringWriter(UTF-8) ?? Pin
zoltix18-Mar-03 3:09
zoltix18-Mar-03 3:09 
GeneralRe: Generate an xml file with StringWriter(UTF-8) ?? Pin
Stephane Rodriguez.18-Mar-03 3:14
Stephane Rodriguez.18-Mar-03 3:14 
GeneralRe: Generate an xml file with StringWriter(UTF-8) ?? Pin
zoltix18-Mar-03 4:01
zoltix18-Mar-03 4:01 

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.