Murach's ADO.NET 4 Database Programming
with C# 2010

How to work with bound controls and
parameterized queries

Chapter 3 teaches you the basics of developing database applications using data sources and datasets. At that point, you're ready to refine your applications by using bound controls, parameterized queries, and customized toolbars and DataGridView controls, as shown in this chapter.

Chapter 4 How to work with bound controls and parameterized queries
How to work with bound text boxes and combo boxes 100
How to format the data displayed in a text box 100
How to use custom formatting 102
How to bind a combo box to a data source 104
How to use code to work with a binding source 106
How to work with parameterized queries 108
How to create a parameterized query 108
How to use code to work with a parameterized query 110
How to work with a ToolStrip control 112
How to use the Items Collection Editor 112
How to code an event handler for a ToolStrip item 114
How to code a custom event handler for a control on a binding navigator toolbar 114
An enhanced Vendor Maintenance application 116
The user interface 116
The code 116
How to work with a DataGridView control 120
How to modify the properties of a DataGridView control 120
How to edit the columns of a DataGridView control 122
How to format the data in the columns of a DataGridView control 124
How to add an unbound column to a DataGridView control 126
How to use a DataGridView control to create a Master/Detail form 128
How to work with the values in a DataGridView control 130
How to delete a row from a DataGridView control 130
An Invoice Maintenance application 132
The user interface 132
The dataset schema 134
The code for the Invoice Maintenance form 136
The code for the Line Items form 138




Murach's ADO.NET 4 with C# 2010

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.