26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Add<br />

Add’s a new row in DataTable<br />

Remove<br />

Remove’s a “DataRow” object from “DataTable”<br />

RemoveAt<br />

Remove’s a “DataRow” object from “DataTable” depending on index position of the<br />

“DataTable”.<br />

(B) What’s basic use of “DataView” ?<br />

“DataView” represent’s a complete table or can be small section of row’s depending on<br />

some criteria.It’s best used for sorting and finding data with in “datatable”.<br />

Dataview has the following method’s :-<br />

Find<br />

Take’s a array of value’s and return’s the index of the row.<br />

FindRow<br />

This also takes array of values but returns a collection of “DataRow”.<br />

If we want to manipulate data of “DataTable” object create “DataView” (Using the<br />

“DefaultView” we can create “DataView” object) of the “DataTable” object. and use<br />

the following functionalities :-<br />

AddNew<br />

Add’s a new row to the “DataView” object.<br />

188

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!