What is basic use of “Data View”?

 Posted by ArticlesMaint on 9/17/2009 | Category: ADO.NET Interview questions | Views: 7278

“Data View” represents a complete table or can be small section of rows depending on some criteria. It is best used for sorting and finding data with in “data table”.

Data view has the following methods:-

It takes an array of values and returns the index of the row.

Find Row
This also takes array of values but returns a collection of “Data Row”.

If we want to manipulate data of “Data Table” object create “Data View” (Using the “Default View” we can create “Data View” object) of the “Data Table” object and use the following functionalities:-

Add New
Adds a new row to the “Data View” object.

Deletes the specified row from “Data View” object.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response