Back to Devexpress

ASPxGridViewEditFormEventArgs Class

aspnet-devexpress-dot-web-11df4549.md

latest2.5 KB
Original Source

ASPxGridViewEditFormEventArgs Class

Provides data for the ASPxGridView.HtmlEditFormCreated event.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class ASPxGridViewEditFormEventArgs :
    EventArgs
vb
Public Class ASPxGridViewEditFormEventArgs
    Inherits EventArgs

ASPxGridViewEditFormEventArgs is the data class for the following events:

Remarks

If the GridViewEditingMode.PopupEditForm mode is enabled, the ASPxGridView.HtmlRowCreated event, which enables you to initialize editors contained within the Edit Form template, isn’t raised. In this instance, you should handle the ASPxGridView.HtmlEditFormCreated event. The web control, which represents the Edit Form can be accessed via the event parameter’s ASPxGridViewEditFormEventArgs.EditForm property.

csharp
protected void ASPxGridView1_HtmlEditFormCreated(object sender,
    DevExpress.Web.ASPxGridViewEditFormEventArgs e) {
    Control wc = ASPxGridView1.FindEditFormTemplateControl("ASPxButtonEdit1");
    if (wc != null) {
        ASPxButtonEdit templateEdit = wc as ASPxButtonEdit;
        //
        // Initialize the editor as required
        //
        templateEdit.ForeColor = System.Drawing.Color.Blue;
    }
}

Inheritance

Object EventArgs ASPxGridViewEditFormEventArgs

See Also

ASPxGridViewEditFormEventArgs Members

HtmlEditFormCreated

Grid View

DevExpress.Web Namespace