473,602 Members | 2,774 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 7235
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.co m

"abc my vclass" <my********@myc lass.com> wrote in message
news:u3******** *****@TK2MSFTNG P11.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.Da taSource = CustomersBLL.Ge tSimpleList(); // This returns
Simple Customers List DataTable.
GridDataView.Bi ndData();


"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> ¼¶¼g©ó¶l¥ó·s»D: u0************* @tk2msftngp13.p hx.gbl...
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.co m

"abc my vclass" <my********@myc lass.com> wrote in message
news:u3******** *****@TK2MSFTNG P11.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.co m

"abc my vclass" <my********@myc lass.com> wrote in message
news:ul******** ******@TK2MSFTN GP12.phx.gbl...
The GridDataView has not BindData method. How should I do it?

GridDataView.Da taSource = CustomersBLL.Ge tSimpleList(); // This returns
Simple Customers List DataTable.
GridDataView.Bi ndData();


"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om>
¼¶¼g©ó¶l¥ó·s»D: u0************* @tk2msftngp13.p hx.gbl...
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.co m

"abc my vclass" <my********@myc lass.com> wrote in message
news:u3******** *****@TK2MSFTNG P11.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
1474
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 the Datasource (also shown in the datagridview) As I move from row to row, the values of the textboxes (which are also bound to the datasource) change according to the value of each column of such row. That is perfectly normal.
2
16334
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
11460
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 in datagridview2 that corresponded to a selected row in datagridview1. Great article/example.
2
1432
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 realted records. The textboxes are in tableChild1 and the other datagridview is of tableChild2, Both these tables have a PK-FK relationship established in the dataset being used. How can I do this? Any help appreciated. Bob
3
6320
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 to get the data in a datagridview to change. For example 2 columns are ID and amount_paid, the datagridview loads on form load with all ID's and amounts. How do I get it to only bring back the selected ID. Sounds like I may need to change the SQL...
4
9711
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 suggestions on the WEB I've yet to discover the solution. What I have done is: 1. Added a reference to my CC class 2. In public from and load methods I've included the following line of code. LIST<CC> CCS NEW = LIST<CC>(); 3. In the properties...
7
1924
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 can take a newb ages to duplicate. Imagine the improved teaching efficiency of being able to direct someone to a working solution! Gurus would not have to teach the same lesson repeatedly and their work would be more persistent. A picture is...
1
2100
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 searching in the solution for cvtDtFrom but failed to find the culprit. tried using clue from stack trace, searching for DataGridview and variations of view.datacon... no luck, Even tried searching all files for the sub main, I failed to find...
0
1876
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 properly by placing it on a panel control. I have added label as button on panel control to display data from datasource on to datagrid and create a binding source. Another Label which act as a button is used to update data from grid to databse.
0
7993
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8404
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8268
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5440
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3900
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2418
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 we have to send another system
1
1510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.