Back to Devexpress

GridListEditor Class

expressappframework-devexpress-dot-expressapp-dot-win-dot-editors.md

latest9.4 KB
Original Source

GridListEditor Class

Represents the List Editor used by default in XAF Windows Forms applications, to display List Views in a UI.

Namespace : DevExpress.ExpressApp.Win.Editors

Assembly : DevExpress.ExpressApp.Win.v25.2.dll

NuGet Packages : DevExpress.ExpressApp.Win, DevExpress.ExpressApp.Win.Design

Declaration

csharp
public class GridListEditor :
    WinColumnsListEditor,
    ISupportNewItemRowPosition,
    ISupportFooter,
    ILookupListEditor,
    IGridListEditorTestable,
    ILookupEditProvider,
    IRequireContextMenu,
    IRequireDXMenuManager,
    IConfigurableLookupListEditor,
    ISupportBorderStyle,
    ISupportFilterEditor
vb
Public Class GridListEditor
    Inherits WinColumnsListEditor
    Implements ISupportNewItemRowPosition,
               ISupportFooter,
               ILookupListEditor,
               IGridListEditorTestable,
               ILookupEditProvider,
               IRequireContextMenu,
               IRequireDXMenuManager,
               IConfigurableLookupListEditor,
               ISupportBorderStyle,
               ISupportFilterEditor

Remarks

List Editors are used by List Views to display object collections in a UI. The GridListEditor provides the most common data representation in the form of a two-dimensional table:

To display object collections, the GridListEditor uses an instance of the GridControl class as the underlying control.

The GridListEditor supports a wide range of features out of the box:

The GridListEditor is used by default in XAF Windows Forms applications. So generally, there is no need to instantiate it in your code. However, the GridListEditor exposes a range of useful public members that are not defined in the base ListEditor class. These members can be accessed, for example, from a custom Controller or Action. The following table lists them.

Property NameMember TypeDescription
WinColumnsListEditor.ColumnCreatedEventOccurs after a column has been created in the GridListEditor‘s GridView. Handle this event to be notified after a column has been created or recreated in the GridListEditor‘s GridView.
WinColumnsListEditor.GridPropertyProvides access to the GridListEditor‘s GridControl control.
GridListEditor.GridViewPropertyProvides access to the GridControl‘s View that is used to represent data in two-dimensional grid form.
GridListEditor.ProcessSelectedItemBySingleClickPropertySpecifies whether a List View’s record must be processed after a click or a double-click.
GridListEditor.TrackMousePositionPropertyWhen this property is set to true, moving the mouse within the GridListEditor‘s region changes the focus to the row that is under the mouse pointer.

To see examples on how to access the GridListEditor from a View Controller, refer to the following topics:

Implements

Show 11 items

IComplexListEditor

IHtmlFormattingSupport

IFocusedElementCaptionProvider

IExportable

ISupportUpdate

IDataAwareExportableCsv

IDataAwareExportableXls

IDataAwareExportableXlsx

IDataAwareExportable

IObjectRecordSupport

ISupportNewItemRowPosition

Inheritance

Object ListEditor ColumnsListEditor WinColumnsListEditor GridListEditor CategorizedListEditor

See Also

GridListEditor Members

DxGridListEditor

List Editors

How to: Configure Bands in a Grid List Editor

DevExpress.ExpressApp.Win.Editors Namespace