Skip to main content
A newer version of this page is available. .
Tab

ASPxGridViewEditFormEventArgs Class

Provides data for the ASPxGridView.HtmlEditFormCreated event.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

public class ASPxGridViewEditFormEventArgs :
    EventArgs

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.

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