471,325 Members | 1,381 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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

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?
Dec 8 '05 #1
3 7005
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]
- mv*@spam.guard.caspershouse.com

"abc my vclass" <my********@myclass.com> wrote in message
news:u3*************@TK2MSFTNGP11.phx.gbl...
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?

Dec 8 '05 #2
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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> 撰寫於郵件新聞:u0*************@tk2msftngp13.phx.gb l...
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]
- mv*@spam.guard.caspershouse.com

"abc my vclass" <my********@myclass.com> wrote in message
news:u3*************@TK2MSFTNGP11.phx.gbl...
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?


Dec 8 '05 #3
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]
- mv*@spam.guard.caspershouse.com

"abc my vclass" <my********@myclass.com> wrote in message
news:ul**************@TK2MSFTNGP12.phx.gbl...
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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com>
撰寫於郵件新聞:u0*************@tk2msftngp13.phx.gb l...
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]
- mv*@spam.guard.caspershouse.com

"abc my vclass" <my********@myclass.com> wrote in message
news:u3*************@TK2MSFTNGP11.phx.gbl...
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?



Dec 8 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Vico | last post: by
2 posts views Thread by Nathan | last post: by
2 posts views Thread by Bob | last post: by
3 posts views Thread by =?Utf-8?B?Sm9obiBCdW5keQ==?= | last post: by
7 posts views Thread by Tom | last post: by
1 post views Thread by GS | last post: by
reply views Thread by rosydwin | 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.