GridDataViewBase.SearchPanelMaxWidth Property
Gets or sets the Search Panel maximum width (in pixels). This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.Core.dll
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Nullable<Double> | null | A nullable value that specifies the Search Panel maximum width (in pixels). |
Remarks
When the SearchPanelMaxWidth property is set to null, the maximum width of the Search Panel(in pixels) depends on the current theme.
Example: Constrain Search Panel Size
The following example sets the SearchPanelMaxWidth and SearchPanelMinWidth properties to limit the search panel width to a specific 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