XafDataView Members

Constructors

Name Description
XafDataView(IObjectSpace, Type, IList<DataViewExpression>, CriteriaOperator, IList<SortProperty>)

Initializes a new instance of the XafDataView class with the specified settings.

Properties

Name Description
AllowEdit

Gets whether you can update data records. This method always returns false because the list represented by XafDataView is readonly.

AllowNew

Gets whether you can add data records. This method always returns false because the list represented by XafDataView is readonly.

AllowRemove

Gets whether you can update data records. This method always returns false because the list represented by XafDataView is readonly.

Count

Gets the number of data records contained in the XafDataView.

Criteria

Specifies criteria used to filter the data view at the server side.

Expressions

Specifies data view column names and expressions used to compute column values.

IsFixedSize

Gets a value indicating whether the data view has a fixed size. This property value is always false because the list represented by XafDataView is readonly.

IsLoaded

Gets a value that indicates whether or not the data records list cached by XafDataView is initialized.

IsReadOnly

Gets a value indicating whether the list repersented by XafDataView is read-only. Always returns true.

IsSynchronized

Gets a value indicating whether access to the data view is synchronized. This method always returns false

Item[Int32]

Gets the data record at the specified index.

ObjectSpace

Gets the Object Space used to query data by the current XafDataView.

ObjectType

Gets the type of business objects that are queried by XafDataView.

Sorting

Specifies the sorted columns within the data view.

SyncRoot

Gets an object that can be used to synchronize access to the data view. Always returns the XafDataView instance itself, because the data view's underlying store is not is not publicly available (see the Remarks section of the ICollection.SyncRoot Property topic).

TopReturnedObjectsCount

Specifies the number of data records retrieved by the XafDataView.

Methods

Name Description
Add(Object)

This method is required to provide IList support. It always throws a NotSupportedException because the list represented by XafDataView is readonly (see the Exceptions section of the IList.Add Method topic).

Clear()

This method is required to provide the IList support. It always throws a NotSupportedException because the list represented by XafDataView is readonly (see the Exceptions section of the IList.Clear Method topic).

Contains(Object)

Determines whether the XafDataView contains a specific data record.

CopyTo(Array, Int32)

Copies the data records to an array, starting at a particular array index.

Dispose()

Releases all resources used by the XafDataView.

FindExpression(String)

Finds the expression by its name in the current XafDataView.

IndexOf(Object)

Determines the index of a specific data record in the XafDataView.

Insert(Int32, Object)

This method is required to provide IList support. It always throws a NotSupportedException because the list represented by XafDataView is readonly (see the Exceptions section of the IList.Insert Method topic).

Reload()

Clears the data records cache.

Remove(Object)

This method is required to provide IList support. It always throws a NotSupportedException because the list represented by XafDataView is readonly (see the Exceptions section of the IList.Remove Method topic).

RemoveAt(Int32)

This method is required to provide IList support. It always throws a NotSupportedException because the list represented by XafDataView is readonly (see the Exceptions section of the IList.RemoveAt Method topic).

Events

Name Description
ListChanged

Occurs when the data records list is changed.