Back to Devexpress

DataViewBase.ColumnChooserState Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-05b576d1.md

latest2.3 KB
Original Source

DataViewBase.ColumnChooserState Property

Gets or sets the Column Chooser‘s state. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
[Browsable(false)]
public IColumnChooserState ColumnChooserState { get; set; }
vb
<Browsable(False)>
Public Property ColumnChooserState As IColumnChooserState

Property Value

TypeDescription
DevExpress.Xpf.Core.IColumnChooserState

The Column Chooser‘s state.

|

Remarks

The following code sample changes the Column Chooser‘s state:

csharp
using DevExpress.Xpf.Core;

public partial class MainWindow : Window {
  public MainWindow() {
      ...

      view.ColumnChooserState = new DefaultColumnChooserState() { 
        Location = new Point(0, 0), 
        Size = new Size(200, 200), 
        MinWidth = 150, 
        MaxWidth = 350, 
        MinHeight = 150, 
        MaxHeight = 250 };
  }
}
vb
Imports DevExpress.Xpf.Core

Public Partial Class MainWindow
    Inherits Window

    Public Sub New()
        ...

        view.ColumnChooserState = New DefaultColumnChooserState() With {
            .Location = New Point(0, 0),
            .Size = New Size(200, 200),
            .MinWidth = 150,
            .MaxWidth = 350,
            .MinHeight = 150,
            .MaxHeight = 250
        }
    End Sub
End Class

See Also

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace