473,511 Members | 16,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7227
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> ¼¶¼g©ó¶l¥ó·s»D: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>
¼¶¼g©ó¶l¥ó·s»D: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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1469
by: Vico | last post by:
Hi! I have this scenario: I have a windows form. I have a DataGridView Control which is bound to a DataSource. Under the DataGridView I have texboxes which represent each one of the columns in...
2
16330
by: Nathan | last post by:
Hi, I have a datagridview bound to a List of objects (ObjectA). Each ObjectA contains an ObjectB property. Class ObjectA { public ObjectB objB {} }
2
11447
by: Rich | last post by:
Hello, Following an example at http://www.vb-tips.com/dbpages.aspx?IA=DG (by Cor Lightert and Ken Tucker) on binding a dataRelation to a Datagridview for sqlClient, I was able to view rows...
2
1429
by: Bob | last post by:
Got a datagridview with records bound to tableParent. Each time I go to a new row (single select) in the datagrid view I want a series of textboxes as well as another datagridview to shwo the...
3
6308
by: =?Utf-8?B?Sm9obiBCdW5keQ==?= | last post by:
New to databinding in vs2005, I always did it manually in 2003. I have no problem loading comboboxes, and a change in that combobox changes the data in the textboxes but I can not figure out a way...
4
9707
by: LMacd | last post by:
I thought binding a list of objects using would be a simple as assigning the list to the data source property of the datagridview object on my C# form through Visual Studio 2005. After reading many...
7
1916
by: Tom | last post by:
By my estimate, greater than 90% of the online doco code does not work without additional coding effort. Fully working solutions are invaluable for the student. A guru's work measured in minutes...
1
2097
by: GS | last post by:
I am perplexed . I thought it is easy to fix the binding error on cvtDtFrom. I only used the cvtDtFrom a couple of places but I found out the error occurred before form loading. I tried...
0
1871
by: jchaturv | last post by:
All, I have a customized DataGridView where I have implemented extra functionality and bounded datasource in the same custom DataGridView (Using C# and .NET). Now, I could able to use it...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.