Re: Bound or unbound
From: William Ryan eMVP (dotnetguru_at_comcast.nospam.net)
Date: 03/03/04
- Next message: William Ryan eMVP: "Re: Bound or unbound"
- Previous message: William Ryan eMVP: "Re: Add record in bound form"
- In reply to: Maurice: "Re: Bound or unbound"
- Next in thread: William Ryan eMVP: "Re: Bound or unbound"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 3 Mar 2004 10:22:44 -0500
The .AddNew Method of the Binding Context will add a new record to the DB
"Maurice" <anonymous@discussions.microsoft.com> wrote in message
news:6483D2A4-8125-4C74-8C7E-7482ABDB5CC4@microsoft.com...
> Dear Cor,
>
> thanks for looking to my question. You're right, not all apps need a
database. I was asking this question because I thought maybe in .NET most
developers use unboud controls: I'm having a little problem and can't find a
clear solution for it.
>
> In .NET I created a form with bound controls (Access Database). I used a
dataset and followed examples to create a navigation using the Binding
Context. So far everything goes well.
> My question, how do I add a new record to the database AFTER the user
filled in the fields on the form. I can't find the solution. The problem is
that my database has some fields that are required before I can add the row
to the database.
>
> Do you know how to do this. How to display a new row in a form with bound
controls..
>
> Thx in advance, Maurice
>
>
>
> Hi Maurice,
>
> >> I was wondering what most of the designers in .NET create: bound
windows
> forms or unbound windows forms. The applications I've made in Access were
> all bound forms but what is the best choice in .NET? And why..
>
> I think this is another question in dotnet, it is not always necessary
that
> an application use a database. When you use the dataadapter and things
like
> that, you need a form to use it, but if you wish, you can than bring it to
a
> seperate class.
>
> But you can also use databases without the wizards and then the data will
> mostly be in another class than the forms.
>
> When you use databases it is good to look at all types of databinding.
> It is very extended in Visual.studio.net.
>
> I hope this was more or less your question?
>
> Cor
>
- Next message: William Ryan eMVP: "Re: Bound or unbound"
- Previous message: William Ryan eMVP: "Re: Add record in bound form"
- In reply to: Maurice: "Re: Bound or unbound"
- Next in thread: William Ryan eMVP: "Re: Bound or unbound"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|