Skip to main content
.NET Framework 4.5.2+

ListView Members

Represents a List View.

Constructors

Name Description
ListView() Initializes a new instance of the ListView class.
ListView(CollectionSourceBase, ListEditor, Boolean, XafApplication) Creates an instance of the ListView class with the specified settings.
ListView(CollectionSourceBase, ListEditor, Boolean) Creates an instance of the ListView class with the specified settings.
ListView(CollectionSourceBase, ListEditor) Creates an instance of the ListView class with the specified collection source and List Editor.
ListView(CollectionSourceBase, XafApplication, Boolean) Creates an instance of the ListView class with the specified settings.
ListView(IModelListView, CollectionSourceBase, XafApplication, Boolean) Creates an instance of the ListView class with the specified settings.

Fields

Name Description
DetailViewControlID For internal use.
InfoAllowDelete static For internal use only. Inherited from ObjectView.
InfoAllowEdit static For internal use only. Inherited from ObjectView.
InfoAllowLink For internal use.
InfoAllowNew static For internal use only. Inherited from ObjectView.
InfoAllowUnlink For internal use.
ListViewControlID Intended for internal use.
ListViewCriteriaName Intended for internal use.
MaxRecursionDepth static Specifies the max recursion depth of the CompositeView. Inherited from CompositeView.
SecurityReadOnlyItemName static Returns a key used to create an item in the View.AllowEdit collection of the current View. This key specifies a reason for making the View editable/read-only when the Security System allows/denies access to edit to the object(s) represented by the View. Inherited from View.

Properties

Name Description
AllowDelete Provides access to a collection of reason/value pairs used to allow or prohibit deletion of objects via a View. Inherited from View.
AllowEdit Provides access to a collection of reason/value pairs used to make a View read-only/editable. Inherited from View.
AllowLink Provides access to a collection of reason/value pairs used to allow or prohibit linking associated objects in a nested List View.
AllowNew Provides access to a collection of reason/value pairs used to allow or prohibit creation of new objects via a View. Inherited from View.
AllowUnlink Provides access to a collection of reason/value pairs used to allow or prohibit unlinking associated objects in a nested List View.
Caption Specifies a List View’s caption.
CollectionSource Provides access to a ListView‘s Collection Source.
ContentUniqueCode For internal use. Inherited from View.
Control Returns the current View‘s control. Inherited from View.
CurrentObject Specifies a List View’s current object.
DelayedItemsInitialization Indicates whether, when the View is created, View Items controls of the CompositeView are initialized immediately. Inherited from CompositeView.
DetailViewId Specifies the ID of the Detail View which is invoked from the current List View, or displayed together with a ListView.
EditFrame This property is intended for internal use.
Editor Returns a List View’s List Editor.
EditView Provides access to the Detail View displayed together with a List View.
ErrorMessages Provides access to the current View‘s message collection. Inherited from View.
Id Returns a View‘s ID. Inherited from View.
Initialization Inherited from View.
IsControlCreated Indicates whether a View‘s View.Control has been created. Inherited from View.
IsDisposed Gets a value indicating whether a View has been disposed of. Inherited from View.
IsRoot Specifies whether a View is root. Inherited from View.
Items Provides access to a Composite View’s View Items collection. Inherited from CompositeView.
LayoutManager Specifies a Composite View’s layout manager. Inherited from CompositeView.
MasterDetailMode Specifies whether to display the Detail View of the currently selected object near the current List View.
MaxRecursionDeep static Inherited from CompositeView.
Model Provides access to the Application Model node where a List View’s settings are stored.
ObjectSpace Provides access to the Object Space within which a View was created. Inherited from CompositeView.
ObjectTypeInfo Specifies metadata information on the current View’s business class. Inherited from ObjectView.
ScrollPosition Specifies the scroll point of Windows in ASP.NET Web Forms applications. Inherited from View.
SelectedObjects Provides access to a collection of objects currently selected in a List View’s ListView.Editor.
SelectionType Returns the selection type supported by the current List View.
SkipObjectSpaceDisposing For internal use. Inherited from CompositeView.
SkipQueryCanClose For internal use. Inherited from View.
Tag Specifies the custom data associated with the View. Inherited from View.

Methods

Name Description
AddItem(ViewItem) Adds a specified View Item to a Composite View’s CompositeView.Items collection. Inherited from CompositeView.
AddItem(IModelViewItem) Creates a View Item using specified information on it, and adds it to a Composite View’s CompositeView.Items collection. Inherited from CompositeView.
AnalyzeModelForInfiniteRecursion(IModelCompositeView) For internal use. Inherited from CompositeView.
BreakLinksToControls() Removes references to a Composite View’s controls and their event handlers. Inherited from CompositeView.
CanChangeCurrentObject() Determines whether a View‘s current object can be changed. Inherited from View.
CanClose() Determines whether a View can be closed. Inherited from View.
Close() Closes a View. Inherited from View.
Close(Boolean) Closes a View if it is allowed to be closed. Inherited from View.
CorrectMemberNames(ITypeInfo, IList<String>, Boolean, Boolean, Boolean) static
CorrectMemberNamesForDataViewMode(ITypeInfo, IList<String>, Boolean, Boolean) static Obsolete. For internal use.
CreateControls() Creates controls that visualize a View in a UI. Inherited from View.
CreateShortcut() Returns key information on the current View. Inherited from View.
DisableEditorsRefreshing() For internal use. Inherited from ObjectView.
Dispose() Releases all resources used by this View object. Inherited from View.
EnableEditorsRefreshing() For internal use. Inherited from ObjectView.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
ExecuteAfterInitialized(Action<Task>) Inherited from View.
FindItem(String) Returns a specified View Item from a Composite View’s CompositeView.Items collection. Inherited from CompositeView.
GetCurrentObjectCaption() Returns the current object’s caption, formatted according to the applied ObjectCaptionFormatAttribute. Inherited from ObjectView.
GetCurrentTypedObject() For internal use.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetItems<T>() Returns View Items of the specified type from the CompositeView.Items collection. Inherited from CompositeView.
GetObject(Object) For internal use.
GetObjectByHandle(String)
GetType() Gets the Type of the current instance. Inherited from Object.
InsertItem(Int32, ViewItem) Inserts a new View Item to a specified position within the CompositeView.Items collection. Inherited from CompositeView.
InsertItem(Int32, IModelViewItem) Creates a View Item using specified information on it, and inserts it to a Composite View’s CompositeView.Items collection at a specified position. Inherited from CompositeView.
IsSameObjectSpace(View) Checks whether a specific View interacts with the database via the current View’s Object Space. Inherited from ObjectView.
LoadModel() For internal use. Inherited from View.
LoadModel(Boolean) Applies the Application Model changes to the current View. Inherited from View.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
RaiseActivated() Raises the View.Activated event. Inherited from View.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Refresh() Refreshes displayed values of the View‘s controls with new values from the data source collection (not from the database itself). Inherited from View.
Refresh(Boolean) Refreshes displayed values of the View‘s controls with new values from the data source collection (and optionally, from the database itself). Inherited from View.
RefreshDataSource() Refreshes the data source of the current ListView.
RemoveItem(String) Removes a particular View Item from a Composite View’s CompositeView.Items collection. Inherited from CompositeView.
SaveModel() Writes information on a View to the Application Model. Inherited from View.
SetModel(IModelView) For internal use. Inherited from View.
ToString() Returns a View‘s textual representation. Inherited from View.
UpdateItem(ViewItem) Updates a specific View Item. Inherited from CompositeView.

Events

Name Description
Activated Occurs when the View.RaiseActivated method is executed. Inherited from View.
AllowDeleteChanged Occurs when the current View‘s View.AllowDelete state has changed. Inherited from View.
AllowEditChanged Occurs when the current View‘s View.AllowEdit state has changed. Inherited from View.
AllowLinkChanged Occurs when the ListView.AllowLink property is changed.
AllowNewChanged Occurs when the current View‘s View.AllowNew state has changed. Inherited from View.
AllowUnlinkChanged Occurs when the ListView.AllowUnlink property is changed.
CaptionChanged Occurs after changing a View‘s caption. Inherited from View.
Closed Occurs after the current View is closed. Inherited from View.
Closing Occurs when closing a View. Inherited from View.
ControlsCreated Occurs after controls for a View are created. Inherited from View.
ControlsCreating Occurs before creating controls for a View. Inherited from View.
CreateCustomCurrentObjectDetailView Occurs when the current List View is updated, and when its current object is changed.
CurrentObjectChanged Occurs after changing a View’s focused object (not an object’s property value). Inherited from View.
CustomizeDisplayableProperties Occurs before the CollectionSourceBase.DisplayableProperties collection is populated by displayable properties collected from the current List Editor and from ListView model columns settings.
CustomizeViewShortcut Occurs when the View.CreateShortcut method creates a View Shortcut for the current View. Inherited from View.
CustomModelSaving Occurs when saving information on a View’s editor(s) to the Application Model. Inherited from View.
DataSourceAsyncLoaded For internal use. Inherited from View.
DataSourceAsyncLoading For internal use. Inherited from View.
DataSourceAsyncLoadingCanceled For internal use. Inherited from View.
Disposing Occurs when the current View is disposed of. Inherited from View.
EditorChanged Occurs after the current List View’s ListView.Editor property has been changed.
EditorChanging Occurs before changing the current View’s ListView.Editor property value.
EditViewCreated Occurs after the ListView.EditView has been created.
ItemsChanged Occurs after changing a Composite View’s CompositeView.Items collection. Inherited from CompositeView.
ModelChanged Occurs after setting the View.Model property for a View. Inherited from View.
ModelChanging Occurs before setting the View.Model property for a View. Inherited from View.
ModelLoaded This event is intended for internal use. Inherited from View.
ModelSaved Occurs after the information on a View has been saved to the Application Model. Inherited from View.
ModelSaving Occurs before saving information on a View’s controls to the Application Model. Inherited from View.
ObjectChanged For internal use only.
ProcessSelectedItem Occurs when double-clicking an object in the current List View.
QueryCanChangeCurrentObject Occurs when the View is asked whether its current object can be changed. Inherited from View.
QueryCanClose Occurs when checking whether a View can be closed. Inherited from View.
SelectionChanged Occurs after changing a View’s selected objects. Inherited from View.
SelectionTypeChanged Occurs when the current View’s selection type is changed. Inherited from View.
ValidateObject Occurs when the object represented by the ListView‘s focused row must be validated.
See Also