windowsforms-17144-controls-and-libraries-vertical-grid-visual-elements-find-panel.md
The grid can display a find panel that enables users to search for keywords in visible rows. The panel searches against records in the vertical grid, and property names in the property grid.
Note
Run the following demo to see the find panel in action: XtraVerticalGrid.
The VGridControl.OptionsFind property provides access to find panel options.
To specify whether search queries are highlighted, use the VGridControl.OptionsFind.HighlightFindResults property.
Search syntax can vary depending on the VGridControl.OptionsFind.ParserKind and VGridControl.OptionsFind.Condition properties. See the following help topic for more information: Find Panel Syntax.
If the standard search syntax does not fit your needs or you need to highlight search results in a custom manner, you can handle the VGridControlBase.ParseFindPanelText event. The event allows you to create a filter condition based on the query and specify how to highlight results in the control.
VGridControl.OptionsFind.ShowCloseButton — the X button that closes the panel.
VGridControl.OptionsFind.ShowFindButton — the Find button that applies the query.
VGridControl.OptionsFind.ShowClearButton — the Clear button.
After a user types in the search box, the search starts automatically depending on the underlying data source. You can use use the VGridControl.OptionsFind.FindMode property to specify this behavior. If the search begins automatically after a query is entered, the VGridControl.OptionsFind.FindDelay property specifies the delay before the search is initiated.
See Also