Is there any examples about DAL or BLL binding data to datagridview?

A

abc my vclass

There are some programs written on .NET 1.1. These applications are apply
n-tiers contains Data Access Layers or Business Logic Layer. Now, our
company upgrade to .NET 2.0 and enhance or rewrite the applications. In
..NET 1.1, we favour to return DataTable from DAL or BLL and then press to
datagrid's datasource and to bind data. Now, I think .NET 2.0 have some
difference to bind data. Is there any good example let me to know how to
binding data between datagridview / input controls and DAL or BLL?
 
N

Nicholas Paldino [.NET/C# MVP]

The data binding model between .NET 1.1 and .NET 2.0 has not changed.
Some convenience classes have been added (such as BindingSource), but your
data binding code should work just fine in the two versions. There is no
need to change any of that.

Hope this helps.
 
A

abc my vclass

The GridDataView has not BindData method. How should I do it?

GridDataView.DataSource = CustomersBLL.GetSimpleList(); // This returns
Simple Customers List DataTable.
GridDataView.BindData();




Nicholas Paldino said:
The data binding model between .NET 1.1 and .NET 2.0 has not changed.
Some convenience classes have been added (such as BindingSource), but your
data binding code should work just fine in the two versions. There is no
need to change any of that.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

abc my vclass said:
There are some programs written on .NET 1.1. These applications are
apply n-tiers contains Data Access Layers or Business Logic Layer. Now,
our company upgrade to .NET 2.0 and enhance or rewrite the applications.
In .NET 1.1, we favour to return DataTable from DAL or BLL and then press
to datagrid's datasource and to bind data. Now, I think .NET 2.0 have
some difference to bind data. Is there any good example let me to know
how to binding data between datagridview / input controls and DAL or BLL?
 
N

Nicholas Paldino [.NET/C# MVP]

What do you need a BindData method for? Once you set the data source,
it should display the data (either that, or you need to set up the columns
which are going to be displayed).

If this is the case, that you aren't configuring the view, check out the
"About" section of the documentation for the DataGridView class. It shows
an example of how to configure a grid (the columns for display, that is).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

abc my vclass said:
The GridDataView has not BindData method. How should I do it?

GridDataView.DataSource = CustomersBLL.GetSimpleList(); // This returns
Simple Customers List DataTable.
GridDataView.BindData();




Nicholas Paldino said:
The data binding model between .NET 1.1 and .NET 2.0 has not changed.
Some convenience classes have been added (such as BindingSource), but
your data binding code should work just fine in the two versions. There
is no need to change any of that.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

abc my vclass said:
There are some programs written on .NET 1.1. These applications are
apply n-tiers contains Data Access Layers or Business Logic Layer. Now,
our company upgrade to .NET 2.0 and enhance or rewrite the applications.
In .NET 1.1, we favour to return DataTable from DAL or BLL and then
press to datagrid's datasource and to bind data. Now, I think .NET 2.0
have some difference to bind data. Is there any good example let me to
know how to binding data between datagridview / input controls and DAL
or BLL?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top