For Programmers: Free Programming Magazines  


Home > Archive > C# > June 2006 > .AddNew() without clearing the form









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author .AddNew() without clearing the form
JoshDCrosby@gmail.com

2006-06-17, 10:02 pm

Hello I have a form that is a bunch of combos/texboxes etc and is used
strictly for data entry, the customer would like to have the ability
after saving the record to have the data stay on the screen, because
most of the time the data is nearly identical - strange I know believe
me :)

Anyway the form is bound to a typed dataset and after the form is
saved, I call a BindingContext...AddNew() to add a new record to the
dataset, works beatiful, great.

is there a setting or override to prevent the data from clearing when
this method is called?

I have been pulling my hair out for the last w, i.e. saving the
dataset to xml, then reloading it back in - major problems there,
anyways I would appreciate the help.

I hope some of you have run into this before and have a solution
before, it seems sooo damn easy to.

Thanks Josh

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com