Back to Devexpress

ASPxGridSearchPanelSettings.Visible Property

aspnet-devexpress-dot-web-dot-aspxgridsearchpanelsettings.md

latest3.6 KB
Original Source

ASPxGridSearchPanelSettings.Visible Property

Gets or sets whether the grid displays the search panel.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool Visible { get; set; }
vb
<DefaultValue(False)>
Public Property Visible As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the grid displays the search panel; otherwise false.

|

Remarks

The search panel allows end-users to filter grid data by typing the required text in the panel editor. Use the Visible property to specify the search panel visibility.

Example

Web Forms (in markup):

aspx
<dx:ASPxGridView ID="Grid" runat="server" >
    ...
    <SettingsSearchPanel Visible="true" />
</dx:ASPxGridView>

Web Forms (in code):

csharp
ASPxGridView grid1 = new ASPxGridView();
grid1.ID = "grid1";
Page.Form.Controls.Add(grid1);
...
grid1.SettingsSearchPanel.Visible = true;

MVC:

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

Concept

GridView:

CardView :

VerticalGrid :

TreeList :

Online Demos

GridView :

CardView :

Vertical Grid :

Tree List :

See Also

ASPxGridSearchPanelSettings Class

ASPxGridSearchPanelSettings Members

DevExpress.Web Namespace