ADO.NET Tools - C Sharp Programming - Lecture Slides, Slides of C Sharp Programming

This programming course teaches different programming concepts with respect to C Sharp Programming. Key points of this lecture are: Ado.Net Tools, Wizards, Data Sources Window, Configuring a Data Source, Creating Bound Control, Illustration, Actions Performed, Bindingsource, Bindingnavigator, Dataset

Typology: Slides

2012/2013

Uploaded on 09/27/2013

vikrant
vikrant 🇮🇳

4.4

(9)

119 documents

1 / 68

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ADO.NET Tools and
Wizards
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44

Partial preview of the text

Download ADO.NET Tools - C Sharp Programming - Lecture Slides and more Slides C Sharp Programming in PDF only on Docsity!

ADO.NET Tools and

Wizards

Data Sources Window

(Introduction)

 Use the Data Sources window to

 Establish a connection

 Create bound control instances on a form

Configuring a Data Source

(Steps 2)

Connect to a database

Configuring a Data Source

(Steps 3)

Create a new connection or select an existing one

Configuring a Data Source

(Steps 5)

Select the database filename

Configuring a Data Source

(Steps 6)

Configured connection

Configuring a Data Source

(Steps 8)

Save the connection string

Configuring a Data Source

(Steps 9)

Select the objects to include

Creating Bound Control

Instances (Introduction)

 Bound control instances are created by

dragging a field (or table) from the Data

Sources window to the form

Creating Bound Control

Instances (Illustration)

The BindingSource

(Introduction)

 The BindingSource was new to .NET 2.  One purpose is to provide currency (current record) management  DataSets and DataTables do not provide currency management  It’s methods are used to locate a record in a particular DataTable  The BindingSource can also be used to add, change, and delete list items  Changes are propagated to the underlying data source ( DataSet and DataTable )

The BindingSource

(Properties)

 Two properties are significant

 The DataSource property contains the

name of the DataSet

 The DataMember property contains the

name of a database table from the DataSet

The BindingSource Class

(Members)

 MoveFirst , MovePrevious , MoveNext ,

MoveLast methods perform navigation

 Current gets the current item from the

database table

The BindingNavigator

(Introduction)

 The BindingNavigator provides a user

interface for the BindingSource

 Control instances are typically bound to the

navigator items