DataView Object

The DataView object is used to create a temporary view of data from a DataTable. You need to use a DataView to bind data to most web controls. (See Tables C.12, C.13, and C.14.)

Table C.12. Properties of the DataView Object
Property Description
AllowDelete Gets or sets the Allow Deletion flag for the DataView.
AllowEdit Gets or sets the Allow Edit flag for the DataView.
AllowNew Gets or sets the Allow New flag for the DataView.
ApplyDefaultSort Gets or sets the ApplyDefaultSort flag for the DataView. This is used to apply default sorting to the DataView's data.
Item Returns a DataRowView from the DataView.
RowFilter Gets, sets, or clears the filter used to determine what data in the DataTable is shown in the DataView.
RowStateFilter ...

Get Inside ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.