Skip to main content
All docs
V26.1
  • GridDataViewBase.SearchPanelMinWidth Property

    Gets or sets the Search Panel minimum width (in pixels). This is a dependency property.

    Namespace: DevExpress.Xpf.Grid

    Assembly: DevExpress.Xpf.Grid.v26.1.Core.dll

    Declaration

    public double? SearchPanelMinWidth { get; set; }

    Property Value

    Type Default Description
    Nullable<Double> null

    A nullable value that specifies the Search Panel minimum width (in pixels).

    Remarks

    When the SearchPanelMinWidth property is set to null, the Search Panel minimum width (in pixels) depends on the current theme.

    Example: Constrain Search Panel Size

    The following example specifies SearchPanelMaxWidth and SearchPanelMinWidth properties to constrain search panel size within a specific width range:

    <dx:ThemedWindow x:Class="GroupPanelExample.MainWindow"
                     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
                     xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
                     ... >
        <dxg:GridControl ItemsSource="{Binding Items}">
            <dxg:GridControl.View>
                <dxg:TableView
                        ShowSearchPanelMode="Always"
                        SearchPanelMinWidth="220"
                        SearchPanelMaxWidth="480"/>
            </dxg:GridControl.View>
        </dxg:GridControl>
    </dx:ThemedWindow>
    
    See Also