aspnet-devexpress-dot-web-dot-aspxgridview-56bde5d4.md
Provides access to the search panel‘s settings.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public ASPxGridViewSearchPanelSettings SettingsSearchPanel { get; }
Public ReadOnly Property SettingsSearchPanel As ASPxGridViewSearchPanelSettings
| Type | Description |
|---|---|
| ASPxGridViewSearchPanelSettings |
An ASPxGridViewSearchPanelSettings object that containing the search panel settings.
|
The search panel allows end-users to locate data by typing the filter criterion in the panel editor and highlight the search results.
Web Forms (in markup):
<dx:ASPxGridView ID="Grid" runat="server" >
...
<SettingsSearchPanel Visible="true" ShowApplyButton="True" ShowClearButton="True"
ColumnNames="ContactName; CompanyName" />
</dx:ASPxGridView>
Web Forms (in code):
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:
@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()
Web Forms : Search Panel
MVC : Search Panel
Web Forms : ASPxGridView - Search Panel
MVC : Grid View - Search Panel
See Also