Back to Devexpress

ASPxGridView.SearchPanelEditorCreate Event

aspnet-devexpress-dot-web-dot-aspxgridview-3e6589a4.md

latest3.6 KB
Original Source

ASPxGridView.SearchPanelEditorCreate Event

Enables you to replace the default search panel editor with custom one.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxGridViewSearchPanelEditorCreateEventHandler SearchPanelEditorCreate
vb
Public Event SearchPanelEditorCreate As ASPxGridViewSearchPanelEditorCreateEventHandler

Event Data

The SearchPanelEditorCreate event's data class is ASPxGridViewSearchPanelEditorCreateEventArgs. The following properties provide information specific to this event:

PropertyDescription
EditorPropertiesGets or sets the filter cell’s editor. Inherited from ASPxGridEditorCreateEventArgs.
ValueGets or sets the filter cell’s value. Inherited from ASPxGridEditorCreateEventArgs.

Remarks

The SearchPanelEditorCreate event is raised for an editor within the search panel, and enables you to replace the default editor with a custom one.

To change the editor, use the event parameter’s ASPxGridEditorCreateEventArgs.EditorProperties property. The editor’s value is specified by the ASPxGridEditorCreateEventArgs.Value property.

To learn more about the search panel, see the Search Panel topic.

Example

aspx
<dx:ASPxGridView ID="Grid" runat="server" OnSearchPanelEditorCreate="Grid_SearchPanelEditorCreate">
    <SettingsSearchPanel Visible="true" ShowApplyButton="True" ShowClearButton="True" />
    <%--...--%>
</dx:ASPxGridView>
csharp
protected void Grid_SearchPanelEditorCreate(object sender, DevExpress.Web.ASPxGridViewSearchPanelEditorCreateEventArgs e) {
    e.EditorProperties = new SpinEditProperties();
}
vb
Protected Sub Grid_SearchPanelEditorCreate(ByVal sender As Object, ByVal e As DevExpress.Web.ASPxGridViewSearchPanelEditorCreateEventArgs)
    e.EditorProperties = New SpinEditProperties()
End Sub

See Also

SearchPanelEditorInitialize

Grid View

Grid View Search Panel

Search Panel

Online Demo: Grid - Search Panel

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace