471,330 Members | 1,212 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Handling Empty BindingSources - AddNew by Default?


We have about 70+ forms and our testers keep making the same mistake -
they start typing into the controls before they create a new record.

We have been thinking about how to handle this situation. We thought
1) we would disable the controls until they added a new one or 2) we
would automatically create a new record when the BindingSource.Count
== 0.

We also have code that will automatically check that our users don't
move to the next record without first saving. Only one record is
displayed on the form at a time. If we add a new record when ther
BindingSource.Count == 0, the underlying DataTable will show an Added
row. So, when the user tries to move to the next record, they are
automatically prompted to save this added record. However, if they are
just navigating to a record, they don't intent to add a record every
time and are confused by the prompt to save. This is really annoying,

So, that leaves us with the option of disabling controls until after a
a new record is created. However, this is a monumental task when you
have 70+ forms. And this isn't directly supported, so we would have to
write some code to do it.

We have also thought about not actually adding the row and leaving it
detached. But then we won't know when to actually add the row to the
underlying DataTable.

We are wondering how other groups handle this situation. Is it more
user friendly to disable the controls or automatically create a new
one? If it were truly up to me, I would redesign the forms to avoid
the issue altogether.

Jul 17 '08 #1
0 852

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

20 posts views Thread by MickeyBob | last post: by
4 posts views Thread by alainpoint | last post: by
12 posts views Thread by Ritz, Bruno | last post: by
5 posts views Thread by Asha | last post: by
1 post views Thread by Leonardo | last post: by
reply views Thread by Finn Stampe Mikkelsen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.