Back to Devexpress

ListView.Editor Property

expressappframework-devexpress-dot-expressapp-dot-listview-3c3e8064.md

latest6.8 KB
Original Source

ListView.Editor Property

Returns a List View’s List Editor.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public ListEditor Editor { get; set; }
vb
Public Property Editor As ListEditor

Property Value

TypeDescription
ListEditor

The List View’s List Editor.

|

Remarks

A List View uses a List Editor to display a collection of objects. The List Editor binds this collection to a particular control. You can use built-in List Editors from the System Module and Additional Modules or create a custom editor in an ASP.NET Core Blazor or Windows Forms XAF application.

Use the Editor property to access members of the current List View’s List Editor (for example, Name, DataSource, EditMode, or ProcessSelectedItemAction).

The following code snippets (auto-collected from DevExpress Examples) contain references to the Editor property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

xaf-how-to-extend-the-application-model/CS/XPO/ExtendModel/ExtendModel.Blazor.Server/Controllers/BlazorGroupFooterViewController.cs#L9

csharp
base.OnViewControlsCreated();
if (View.Model is IModelListViewExtender modelListView && modelListView.IsGroupFooterVisible && View.Editor is DxGridListEditor gridListEditor) {
    gridListEditor.GridModel.GroupFooterDisplayMode = DevExpress.Blazor.GridGroupFooterDisplayMode.Always;

xaf-win-enable-inplace-editing-in-tree-list-view/CS/EFCore/TreeListInplaceEF/TreeListInplaceEF.Win/Controllers/TreeListAppearanceControllerEx.cs#L11

csharp
base.OnTreeListChanged();
if (base.Active.ResultValue && base.View != null && base.View.Editor != null && base.View.Editor is TreeListEditor && ((TreeListEditor)base.View.Editor).TreeList != null) {
    ((TreeListEditor)base.View.Editor).TreeList.ShowingEditor += new System.ComponentModel.CancelEventHandler(control_ShowingEditor);

xaf-win-gantt-control/CS/EF/GanttSolution/GanttSolution.Win/Controllers/RibbonCustomizationWindowController.cs#L23

csharp
ribbonControl = ribbonForm.Ribbon;
ganttControl = View.Editor?.Control as GanttControl;
if(ribbonControl != null && ganttControl != null) {

XAF-how-to-add-an-unbound-column-to-gridlisteditor-to-execute-a-custom-action-for-a-record/CS/EFCore/ButtonInListEF/ButtonInListEF.Win/Controllers/SimpleBusinessActionGridListViewController.cs#L28

csharp
base.OnViewControlsCreated();
gridListEditor = View.Editor as GridListEditor;
if(gridListEditor != null) {

xaf-how-to-sort-a-listview-in-code/CS/EFCore/SortListViewEF/SortListViewEF.Module/Controllers/SortListViewController.cs#L29

csharp
base.OnViewControlsCreated();
if (View.Editor is ColumnsListEditor listEditor)
{

xaf-how-to-implement-dependent-views-in-a-dashboardview-filter-based-on-selection/VB/Solution3.Module.Web/Controllers/DashboardRefreshController.vb#L33

vb
Dim listView As ListView = CType(sourceItem.InnerView, ListView)
Dim editor As ASPxGridListEditor = CType(listView.Editor, ASPxGridListEditor)
If editor Is Nothing Then

xaf-how-to-show-a-hyper-link-url-email-etc-for-a-business-class-property/VB/HyperLinkPropertyEditor.Win/GridListEditorOpenHyperLinkViewController.vb#L17

vb
MyBase.OnViewControlsCreated()
gridListEditor = TryCast(CType(View, ListView).Editor, GridListEditor)
If gridListEditor IsNot Nothing AndAlso gridListEditor.GridView IsNot Nothing Then

See Also

Ways to Access UI Elements and Their Controls

How to: Access the Grid Component in a List View

UI Element Overview

CreateControls()

ListView Class

ListView Members

DevExpress.ExpressApp Namespace