Monday, February 8, 2010

Define Dataview component of ADO.NET.

A DataView object allows you work with data of DataTable of DataSet object. It is associated with a DataTable and sits on the top of DataTable. It is used to filter and sort data. Data sorting is accomplished by setting the Sort property and data filter by setting the RowFilter property.

What are the ways to create connection in ADO.NET?

There are two ways to create connection supported by ADO.NET.
Steps to create connection in code
Create instance of connection object.
Set the ConnectionString property.

Steps to create connection using designer
Drag connection object from the Data tab of the toolbox.
Set the ConnectionString property using properties window.

No comments:

Post a Comment