expressappframework-devexpress-dot-expressapp-dot-listview-3c3e8064.md
Returns a List View’s List Editor.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public ListEditor Editor { get; set; }
Public Property Editor As ListEditor
| Type | Description |
|---|---|
| ListEditor |
The List View’s List Editor.
|
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.
base.OnViewControlsCreated();
if (View.Model is IModelListViewExtender modelListView && modelListView.IsGroupFooterVisible && View.Editor is DxGridListEditor gridListEditor) {
gridListEditor.GridModel.GroupFooterDisplayMode = DevExpress.Blazor.GridGroupFooterDisplayMode.Always;
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);
ribbonControl = ribbonForm.Ribbon;
ganttControl = View.Editor?.Control as GanttControl;
if(ribbonControl != null && ganttControl != null) {
base.OnViewControlsCreated();
gridListEditor = View.Editor as GridListEditor;
if(gridListEditor != null) {
base.OnViewControlsCreated();
if (View.Editor is ColumnsListEditor listEditor)
{
Dim listView As ListView = CType(sourceItem.InnerView, ListView)
Dim editor As ASPxGridListEditor = CType(listView.Editor, ASPxGridListEditor)
If editor Is Nothing Then
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