Back to Devexpress

ASPxGridEditorEventArgs.Editor Property

aspnet-devexpress-dot-web-dot-aspxgrideditoreventargs.md

latest2.3 KB
Original Source

ASPxGridEditorEventArgs.Editor Property

Gets the editor currently being processed.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public ASPxEditBase Editor { get; }
vb
Public ReadOnly Property Editor As ASPxEditBase

Property Value

TypeDescription
ASPxEditBase

An ASPxEditBase descendant that is the processed cell editor.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.

asp-net-web-forms-grid-programmatically-bind-combobox-column/CS/Solution/Default.aspx.cs#L31

csharp
if (e.Column.FieldName == "Status") {
    ASPxComboBox combo = (ASPxComboBox)e.Editor;
    combo.DataBind();

asp-net-web-forms-grid-programmatically-bind-combobox-column/VB/Solution/Default.aspx.vb#L29

vb
If Equals(e.Column.FieldName, "Status") Then
    Dim combo As ASPxComboBox = CType(e.Editor, ASPxComboBox)
    combo.DataBind()

See Also

ASPxGridEditorEventArgs Class

ASPxGridEditorEventArgs Members

DevExpress.Web Namespace