Tab
A newer version of this page is available. Switch to the current version.

ASPxGridViewEditFormEventArgs Class

Provides data for the ASPxGridView.HtmlEditFormCreated event.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class ASPxGridViewEditFormEventArgs :
    EventArgs
Public Class ASPxGridViewEditFormEventArgs
    Inherits 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