Skip to Main Content
VB.Net Web Developer's Guide
book

VB.Net Web Developer's Guide

by Syngress
September 2001
Intermediate to advanced content levelIntermediate to advanced
608 pages
23h 46m
English
Syngress
Content preview from VB.Net Web Developer's Guide
444 Chapter 9 • Using ADO.NET
Create the DataSet and fill it with the SqlDataAdapter object we created
earlier:
dsShippers = New DataSet()
objAdapter.Fill(dsShippers, "Shippers")
Set the DataSource of our data grid to the newly created DataSet, and call
the DataBind method to finish the grid:
DGShippers.DataSource =
dsShippers.Tables("Shippers").DefaultView
DGShippers.DataBind()
End Sub
Call the BindData procedure from the Page_Load event.The finished product
is shown in Figure 9.9.
The WebForm DataGrid can be further enhanced with the Columns collec-
tion that may contain any or all of the objects in Table 9.5.These give us the
power to create some very appealing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

VB.NET Core Classes in a Nutshell

VB.NET Core Classes in a Nutshell

Budi Kurniawan, Ted Neward

Publisher Resources

ISBN: 9781928994480