aspnet-devexpress-dot-web-11df4549.md
Provides data for the ASPxGridView.HtmlEditFormCreated event.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public class ASPxGridViewEditFormEventArgs :
EventArgs
Public Class ASPxGridViewEditFormEventArgs
Inherits EventArgs
ASPxGridViewEditFormEventArgs is the data class for the following events:
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;
}
}
Object EventArgs ASPxGridViewEditFormEventArgs
See Also