Click here to Skip to main content
16,004,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: ADO.Net not saving to database Pin
JacquesDP7-Mar-07 1:30
JacquesDP7-Mar-07 1:30 
GeneralRe: ADO.Net not saving to database Pin
baerten7-Mar-07 1:43
baerten7-Mar-07 1:43 
GeneralRe: ADO.Net not saving to database Pin
JacquesDP7-Mar-07 1:51
JacquesDP7-Mar-07 1:51 
GeneralRe: ADO.Net not saving to database Pin
baerten7-Mar-07 4:26
baerten7-Mar-07 4:26 
GeneralRe: ADO.Net not saving to database Pin
JacquesDP7-Mar-07 21:59
JacquesDP7-Mar-07 21:59 
AnswerRe: ADO.Net not saving to database Pin
Mike Hankey7-Mar-07 7:28
mveMike Hankey7-Mar-07 7:28 
GeneralRe: ADO.Net not saving to database Pin
JacquesDP7-Mar-07 22:01
JacquesDP7-Mar-07 22:01 
GeneralRe: ADO.Net not saving to database Pin
Mike Hankey8-Mar-07 1:38
mveMike Hankey8-Mar-07 1:38 
Hmmm

The only other thing I can think of is that the EndEdit is used in wrong context...see code snippet below.

//If current item is not new and not cloned
if (!obj.IsNew && !obj.IsCloned)
{
drv = dvItem[index];
drv.BeginEdit();
}
else
drv = dvItem.AddNew();

//Transfer Shape data to DataView
obj.ObjectToDRV(drv, id);
drv.EndEdit();
daShape.Update(dsShapeEd1);

dsShapeEd1.AcceptChanges();

You'll notice that I only use the EndEdit if the object is being updated and not new!
Hope this helps.

Mike

Started out with nothing and still have most of it left!

GeneralRe: ADO.Net not saving to database Pin
JacquesDP7-Mar-07 22:30
JacquesDP7-Mar-07 22:30 
QuestionThird Post but still having Problem Pin
Abubakarsb6-Mar-07 23:35
Abubakarsb6-Mar-07 23:35 
AnswerRe: Third Post but still having Problem Pin
Pete O'Hanlon7-Mar-07 2:54
mvePete O'Hanlon7-Mar-07 2:54 
Questioncustom control Pin
OlaMohammed6-Mar-07 22:44
OlaMohammed6-Mar-07 22:44 
AnswerRe: custom control Pin
PS@Codeproj6-Mar-07 23:19
PS@Codeproj6-Mar-07 23:19 
GeneralRe: custom control Pin
OlaMohammed7-Mar-07 21:49
OlaMohammed7-Mar-07 21:49 
QuestionSmartPanel Refresh Problem Pin
Alan Seedhouse6-Mar-07 22:18
professionalAlan Seedhouse6-Mar-07 22:18 
QuestionPassword to reach one form to another.Please help me.tq very much. Pin
krajah106-Mar-07 22:15
krajah106-Mar-07 22:15 
AnswerRe: Password to reach one form to another.Please help me.tq very much. Pin
Keshav V. Kamat6-Mar-07 22:46
Keshav V. Kamat6-Mar-07 22:46 
AnswerRe: Password to reach one form to another.Please help me.tq very much. Pin
PS@Codeproj6-Mar-07 23:05
PS@Codeproj6-Mar-07 23:05 
QuestionWindows RClick menu. Pin
Radu Sorin6-Mar-07 22:04
Radu Sorin6-Mar-07 22:04 
AnswerRe: Windows RClick menu. Pin
Stefan Troschuetz6-Mar-07 22:58
Stefan Troschuetz6-Mar-07 22:58 
QuestionTo get projects/files from source basis on the label using Automation. Pin
Mushtaque Nizamani6-Mar-07 22:03
Mushtaque Nizamani6-Mar-07 22:03 
QuestionFocus on custom Cell when entering a Row in DataGridView Pin
freshonlineMax6-Mar-07 21:48
freshonlineMax6-Mar-07 21:48 
AnswerRe: Focus on custom Cell when entering a Row in DataGridView Pin
Keshav V. Kamat6-Mar-07 22:20
Keshav V. Kamat6-Mar-07 22:20 
GeneralRe: Focus on custom Cell when entering a Row in DataGridView Pin
freshonlineMax7-Mar-07 3:00
freshonlineMax7-Mar-07 3:00 
QuestionCrystal Report Alerts and reading report values in code Pin
Shaurya_Rastogi6-Mar-07 21:15
Shaurya_Rastogi6-Mar-07 21:15 

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.