Back to Devexpress

TreeList.ShowFindPanel() Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-fc21a77a.md

latest2.8 KB
Original Source

TreeList.ShowFindPanel() Method

Displays the Find Panel.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public void ShowFindPanel()
vb
Public Sub ShowFindPanel

Remarks

The ShowFindPanel method invokes and focuses the Find Panel. Call the TreeList.HideFindPanel method to hide the Find Panel.

Use the TreeList.OptionsFind property to access options that specify panel visibility, behavior (search or filter), operation button visibility, etc.

The TreeList.FindFilterText property specifies the query in the edit box. To apply a query in code, use the TreeList.ApplyFindFilter method.

See the following help topic for more information: Find Panel.

Example

To open and focus the panel when the control is displayed for the first time, call the ShowFindPanel() method asynchronously.

csharp
Load += Form1_Load;

void Form1_Load(object sender, EventArgs e) {
    treeList1.BeginInvoke(new Action(treeList1.ShowFindPanel));
}
vb
Private Load += AddressOf Form1_Load

Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
    treeList1.BeginInvoke(New Action(AddressOf treeList1.ShowFindPanel))
End Sub

See Also

OptionsFind

HideFindPanel()

FindFilterText

Find Panel

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace