Back to Devexpress

ASPxGridViewSearchPanelSettings Class

aspnet-devexpress-dot-web-348bf533.md

latest3.9 KB
Original Source

ASPxGridViewSearchPanelSettings Class

Provides settings that affect the search panel functionality.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class ASPxGridViewSearchPanelSettings :
    ASPxGridSearchPanelSettings
vb
Public Class ASPxGridViewSearchPanelSettings
    Inherits ASPxGridSearchPanelSettings

The following members return ASPxGridViewSearchPanelSettings objects:

Remarks

Use the ASPxGridView.SettingsSearchPanel property to access the ASPxGridViewSearchPanelSettings object.

Example

Web Forms (in markup):

aspx
<dx:ASPxGridView ID="Grid" runat="server" >
    ...
    <SettingsSearchPanel Visible="true" ShowApplyButton="True" ShowClearButton="True" 
    ColumnNames="ContactName; CompanyName" />
</dx:ASPxGridView>

Web Forms (in code):

csharp
ASPxGridView grid1 = new ASPxGridView();
grid1.ID = "grid1";
Page.Form.Controls.Add(grid1);
...
grid1.SettingsSearchPanel.Visible = true;
grid1.SettingsSearchPanel.ShowApplyButton = true;
grid1.SettingsSearchPanel.ShowClearButton = true;
grid1.SettingsSearchPanel.ColumnNames = "ContactName; CompanyName";

MVC:

csharp
@Html.DevExpress().GridView(settings => {
    settings.Name = "grid";
    settings.SettingsSearchPanel.Visible = true;
    settings.SettingsSearchPanel.ShowApplyButton = true;
    settings.SettingsSearchPanel.ShowClearButton = true;
    settings.SettingsSearchPanel.ColumnNames = "ContactName; CompanyName";
    ...
}).Bind(Model).GetHtml()

Concept

Online Demos

Implements

IStateManager

Inheritance

Object StateManager PropertiesBase ASPxGridSettingsBase ASPxGridSearchPanelSettings ASPxGridViewSearchPanelSettings MVCxGridViewSearchPanelSettings

See Also

ASPxGridViewSearchPanelSettings Members

Grid View

Grid View Search Panel

Search Panel

Online Demo: Grid - Search Panel

DevExpress.Web Namespace