Bound or unbound

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

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..

Thx!
 
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
 
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, Mauric


Hi Maurice
forms or unbound windows forms. The applications I've made in Access wer
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 tha
an application use a database. When you use the dataadapter and things lik
that, you need a form to use it, but if you wish, you can than bring it to
seperate class

But you can also use databases without the wizards and then the data wil
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

Co
 
The .AddNew Method of the Binding Context will add a new record to the DB
Maurice said:
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.
 
Maurice:
Maurice said:
Hi,

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 agree with Cor as usual. The only thing I'd mention is that if your app
is datadriven, I think most .NET developers are using Binding b/c it's easy
to implement, straightforward and very powerful. In the old VB6/C++ days,
databinding could be scarry, but I've found it to be very reliable in .NET
and there's great visual support in VS.NET but even if you don't want to use
it, you can code some classes and do everything through code too.

What specifically are you trying to accomplish? With a little more info, I
could probably be of more help.

Bill
 
Back
Top