Dataview is an object that gives us an option to filter, sort, search the underlying datatable. In real it does not store the actual data itself but gives us a logical view of the datatable that satisfies the criteria given. So in 1.x days, framework does not give any option to get the data that dataview gives as a datatable, which will be really useful in many situations.
ADO.Net 2.0 prevents this difficulty by exposing method called DataView.ToTable() with 4 overloads.
DataView.ToTable () Creates and returns a new DataTable based on rows in an existing DataView.
DataView.ToTable (String) Creates and returns a new DataTable based on rows in an existing DataView.
DataView.ToTable (Boolean, String[]) Creates and returns a new DataTable based on rows in an existing DataView.
DataView.ToTable (String, Boolean, String[]) Creates and returns a new DataTable based on rows in an existing DataView.
|
| Author: Thamil Selvan J. 06 Oct 2007 | Member Level: Silver Points : 0 |
Good
|