Saturday 29 November 2014

Dataview VS Datatable

1. DataView can be used to select the data.Datatable can be used to edit or select or delete or insert a data.Means that Dataview is read only where as Datatable is read/Write.
2. Dataview is a reference to an existing DataTable.It must be instantiated with a reference to an existing DataTable.it Cannot be populated from scratch. where as Can be created empty and then populated
3. Since Dataview is a reference of datatable so it does not consume space. where as datatable's data takes storage space.
4. Dataview Can sort or filter rows without modifying the underlying data.where as datatable can add/edit/delete rows, columns, and data, and all changes are persistent.
5. Dataview supports calculated columns, which are columns with a value calculated on the fly by combining or manipulating other columns. Does not support calculated columns.

No comments:

Post a Comment