Boilerplate
 
HOME | CONTACT US | SITE MAP

Recent Searches:
Search: Boilerplate
Search: Forms
Search: Nolo Press

Partner Sites:
Web Inceptions, Inc.
Domain Name Sales
Domain Registration Alerts


New Sites:
Supernatural Photography
Bargain Scrapbooks
Challenge Workshop
Virtual Pets
Reconcilable Differences
The Love Bible
Advanced Navigation
PUA
Hyper Seduction
Advanced Defense
Party Confidential
Spice Chefs
Adventure Climbers
Independent Cycling
Organic Parenting
Affordable Beach Living
Coach Promotion
Nightlife Photographer
Affordable Home Broker
Interior Updates
Real Estate Bailout
Serenity Photography
Advanced Exports
Enhanced Photography
Smart Custody
Adventure By Nature
The Wine You Love
Bridal Insight
Inspirational Instruction
Coral Adventures
Boilerplate.info
Wednesday, November 19, 2008


Data Binding in TierDeveloper

Data Binding in TierDeveloper by: Ann Morris

INTRODUCTION

One of the most powerful aspects of . NET and Windows Forms is data binding. Data binding is the process of associating user interface (UI) elements with a data source to generate a visual representation of data. Two types of data binding are available for Windows Forms: Simple Data Binding and Complex Data Binding.

Simple data binding allows you to bind one data element to a control. In many situations you want to display only one record at a time e. g. , customer’s personal information. Textboxes and labels are such controls that are used for this purpose and hence called simple binding.


Complex data binding allows you to bind more than one data element to a control. For example if you want to display number of orders placed by a customer you would use controls like data grid controls, list boxes.

The data binding capabilities of . NET are similar to ADO and the Visual Basic controls. Visual Basic or Delphi users will find . NET data binding more flexible and more transparent. It saves a lot of time in both Windows Forms and ASP. NET applications.

How to Bind TierDeveloper DataSet to Data Grid Control

Assumptions

You are using TierDeveloper’s sample project “TDevStoreSQL. tier” and you’ve defined a query method “GetAllCustomers” for the object “Customers”.

You have generated the components and Windows Forms Application from TierDeveloper.

You have access to a database, such as Microsoft SQL Server™ or Microsoft Access.

In order to bind Data Grid please follow these steps: -

1. Open the TierDeveloper generated project in VS. NET

2. Add and open a new Windows Form.

3. Select the ToolBox window and click on Windows Forms tab.

4. Drag DataGrid component and place it anywhere on the Windows Form.

5. Paste the following code in the Windows Form Load event.

[Visual Basic]

Private Sub CustomersForm_Load(ByVal sender As System. Object, ByVal e As System. EventArgs) Handles MyBase. Load

Dim cf As CustomersFactory = New CustomersFactory

DataGrid1. CaptionText = "Customers"

DataGrid1. DataSource = cf. GetAllCustomersDS()

End Sub

[C#]

Private void CustomersForm_Load(object sender, System. EventArgs e)

{

CustomersFactory cf = New CustomersFactory();

DataGrid1. CaptionText = "Customers" ;

DataGrid1. DataSource = cf. GetAllCustomersDS();

}

6. The postfix DS shows that this method will return a DataSet object.

7. Run the application and you will see that the DataGrid is filled with all the customers.

Note: You can also bind datagrid to customer collection to do this you will just have to change the grid data source to the method that can return collection.

DataGrid1. DataSource = cf. GetAllCustomers();

Author:
Ann Morris

About the Author:
I am Ann Morris and work in Software development consultancy company.ann(at)alachisoft.com



More great sites:
Illinois Bankruptcy | Indiana Bankruptcy | Kansas Bankruptcy | Kentucky Refinance | Louisiana Bankruptcy | Maine Bankruptcy | Maine Refinance | Maryland Bankruptcy | Maryland Refinance | Massachusetts Bankruptcy | Massachusetts Refinance | Michigan Refinance | Nevada Bankruptcy | New Hampshire Bankruptcy | New Jersey Attorney | New Jersey Refinance | New Mexico Bankruptcy | North Carolina Bankruptcy | North Carolina Refinance | Ohio Refinance | Oklahoma Bankruptcy | Oregon Bankruptcy | Oregon Refinance | Pennsylvania Bankruptcy | South Carolina Bankruptcy | South Carolina Refinance | Tennessee Bankruptcy | Tennessee Refinance | Utah Attorney | Utah Bankruptcy | Utah Refinance | Vermont Bankruptcy | Virginia Attorney | Virginia Bankruptcy | Virginia Refinance | West Virginia Bankruptcy | Wisconsin Refinance | Salts | Nebulizer | Conflict Resolution | Prenuptial Agreement | Active Playground | The Music Experts | Windows Expert | Creative Photos | Business Bankruptcy | FGB | Hookups | The Single Woman | The Flower Guide | Adventure Brand | Senior Rebate | Adventure Tracks | Persian Rug | Free Insurance Quotes | Income Tax Preparation | Pearl Necklace | Reciprocal | Share Music | American Citizen | MHI | HFT | Home Loan Guide | Animation Adventures | Digital Photo Gear | Projector Rental | Commandments | The Active Senior | Affordable Gifts | Antiques For Sale | Option Trading | Wedding Destination Guide | Short Films | Online Dating Guide | Travel Personals | Travel Advisory | Atkins Guide | Networking Parents | Single Sense | Birth Control Patch |

Do you have a web site? Please link to us!


Boilerplate.info: Data Binding in TierDeveloper

More Boilerplate information:

Article: How to Start a Bankruptcy Forms Processing Service How to Start a Bankruptcy Forms Processing Service

Article: How to Start an Online Bankruptcy Forms Processing Service How to Start an Online Bankruptcy Forms Processing Service

Article: Hire Divorce Lawyer or Use Online Divorce Forms? Hire Divorce Lawyer or Use Online Divorce Forms?

Article: Get Free Payroll Forms Download from the Internet Get Free Payroll Forms Download from the Internet

Article: The Power of Web Forms The Power of Web Forms

Article: The Top 5 Roadblocks To Web Accessibility The Top 5 Roadblocks To Web Accessibility

Article: Tax Information for Small Businesses Tax Information for Small Businesses

Article: Universal Law Primer Universal Law Primer

Article: Deadlines Approaching For Filing 1099s For Independent Contractors Deadlines Approaching For Filing 1099s For Independent Contractors

Article: A Crash Course on Graphic Philosophy 101 A Crash Course on Graphic Philosophy 101

Article: Living Wills - 10 Most Common Questions Living Wills - 10 Most Common Questions

Article: A Crash Course on Graphic Philosophy 101 A Crash Course on Graphic Philosophy 101

Article: Advanced Health Care Directive 10 Most Commonly Asked Questions Advanced Health Care Directive 10 Most Commonly Asked Questions

Article: The Reality of Successful Web Site Today The Reality of Successful Web Site Today

Article: Photography 101 Part 2 Photography 101 Part 2

Article: House Cleaning - The Professional Business House Cleaning - The Professional Business

Article: Deadlines Approaching For Filing 1099s For Independent Contractors Deadlines Approaching For Filing 1099s For Independent Contractors

Article: Testosterone Therapy in XXI Century Testosterone Therapy in XXI Century

Article: Seven New Ways to Be Smart Seven New Ways to Be Smart

Article: How to Boost Attendance How to Boost Attendance

Article: Nature Worship Nature Worship

Article: Hire Divorce Lawyer or Use Online Divorce Forms Hire Divorce Lawyer or Use Online Divorce Forms

Article: Tax Trap #3 -- IRS Penalties, Interest and Love Letters Tax Trap #3 -- IRS Penalties, Interest and Love Letters

Article: Data Binding in TierDeveloper Data Binding in TierDeveloper

Article: Investors What Separates the Good Traders from the Bad Traders? Investors What Separates the Good Traders from the Bad Traders?


Boilerplate
Forms Nolo Press

Related Items:
Boilerplate
Windows
Furniture
Bedding
Home Improvement
Boiler
Home Decor
Bar Stool
Pressure Washer
Kitchen Island
Legal Elements
Spanish Forms
Legal Tasks
Alaska Legal Documents
Form Letters
Gold Clause
940 Forms
Tad Crawford
Partnering Contract
Contract Automation
Contracts Spain
Do It Yourself Law
Tops Forms
Self Help Resource
Metals
Report Form
Steamboat
Legal Guardian
Nolo Law Books
Oregon Forms
Confidential Contracts
Steel
Contracts
Heating
Contractor
Assignments
Wills
Heater
Air Conditioning
Deeds
Hvac
Legal Agreements
Furnaces
Building Materials
Legal Forms
Air Conditioners
Air Conditioner
Metalworking
Power Of Attorney
Heat Exchanger
Business Forms
Heat Exchangers
Heating Systems
Heating System
Contract Law
Promissory Note
Metal Forming
Steel Tubing
Heat Treating
Website Building
Building A Home
Legal Problem
Rental Agreements
Via Voice
Steam Boiler
Legal Contracts
Law Marriage
Metal Signs
Income Tax Forms
Legal Trouble
Texas Divorce
Contract Employment
Building Your Own Home
Self Help Law
Print Card
Software Contract
Legal Docs
Software Contracts
Wills Estate Planning
Contract Laws
Litigation Forms
Litigation Contract
Written Employment Contract
Music Contracts
Lease Forms
Living Will Forms
Florida Contractor
Affidavit Forms
Texas Contractors
Sample Divorce Forms
Personal Loan Forms
Self Help Law Books
Child Custody Forms
Merchandising Contract
Agreement Contract Employment

 
Copyright © 2000-2006 Boilerplate.info. All Rights Reserved.
Home | Contact Us | About Us | Site Map | Add URL