skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GridViewSearchRowInfo

Represents the data row associated with the search functionality of RadGridView.

Inheritance
System.Object
GridViewRowInfo
GridViewSystemRowInfo
GridViewSearchRowInfo
Inherited Members
GridViewSystemRowInfo.IComparable<GridViewSystemRowInfo>.CompareTo(GridViewSystemRowInfo)
GridViewSystemRowInfo.IsSystem
GridViewSystemRowInfo.Index
GridViewSystemRowInfo.RowPosition
GridViewSystemRowInfo.Parent
GridViewRowInfo.IsAttachedState
GridViewRowInfo.IsModifiedState
GridViewRowInfo.IsCurrentState
GridViewRowInfo.IsSelectedState
GridViewRowInfo.IsExpandedState
GridViewRowInfo.IsVisibleState
GridViewRowInfo.AllowResizeState
GridViewRowInfo.SuspendNotificationsState
GridViewRowInfo.IsInitializedState
GridViewRowInfo.LastRowInfoState
GridViewRowInfo.state
GridViewRowInfo.SetParent(GridViewRowInfo)
GridViewRowInfo.GetActualHeight(IGridView)
GridViewRowInfo.InvalidateRow()
GridViewRowInfo.EnsureVisible()
GridViewRowInfo.EnsureVisible(Boolean)
GridViewRowInfo.Delete()
GridViewRowInfo.GetErrorText(String)
GridViewRowInfo.HasChildRows()
GridViewRowInfo.SuspendPropertyNotifications()
GridViewRowInfo.ResumePropertyNotifications()
GridViewRowInfo.FindParent<T>()
GridViewRowInfo.IDataItem.get_Item(Int32)
GridViewRowInfo.IDataItem.set_Item(Int32, Object)
GridViewRowInfo.IDataItem.get_Item(String)
GridViewRowInfo.IDataItem.set_Item(String, Object)
GridViewRowInfo.IDataItem.IndexOf(String)
GridViewRowInfo.Dispose()
GridViewRowInfo.DispatchEvent(KnownEvents, GridEventType, GridEventDispatchMode, Object, Object[])
GridViewRowInfo.GetEventInfo(GridPropertyChangedEventArgs, GridEventDispatchMode)
GridViewRowInfo.OnBeginEdit()
GridViewRowInfo.OnEndEdit()
GridViewRowInfo.OnPropertyChanging(PropertyChangingEventArgsEx)
GridViewRowInfo.ClearCache()
GridViewRowInfo.SetRowStateProperty<T>(String, T, T)
GridViewRowInfo.SetBooleanProperty(String, Int32, Boolean)
GridViewRowInfo.SearchCache
GridViewRowInfo.IsModified
GridViewRowInfo.ErrorText
GridViewRowInfo.Group
GridViewRowInfo.ViewInfo
GridViewRowInfo.ViewTemplate
GridViewRowInfo.Cells
GridViewRowInfo.Tag
GridViewRowInfo.DataBoundItem
GridViewRowInfo.MinHeight
GridViewRowInfo.MaxHeight
GridViewRowInfo.Height
GridViewRowInfo.IsCurrent
GridViewRowInfo.IsSelected
GridViewRowInfo.IsExpanded
GridViewRowInfo.IsVisible
GridViewRowInfo.IsPinned
GridViewRowInfo.PinPosition
GridViewRowInfo.IsEditable
GridViewRowInfo.IsOdd
GridViewRowInfo.AllowResize
GridViewRowInfo.IDataItem.DataBoundItem
GridViewRowInfo.IDataItem.FieldCount
GridViewRowInfo.IDataItem.Item[Int32]
GridViewRowInfo.IDataItem.Item[String]
GridViewRowInfo.HierarchyLevel
GridViewRowInfo.ChildRows
GridViewRowInfo.HasChildViews
GridViewRowInfo.PropertyChanged
GridViewRowInfo.PropertyChanging
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll

Syntax

public class GridViewSearchRowInfo : GridViewSystemRowInfo, IDataItem, IHierarchicalRow, INotifyPropertyChanged, INotifyPropertyChangingEx, IDisposable, IComparable<GridViewSystemRowInfo>, IGridViewEventListener

Constructors

GridViewSearchRowInfo(GridViewInfo)

Initializes a new instance of the GridViewSearchRowInfo class.

Declaration
public GridViewSearchRowInfo(GridViewInfo viewInfo)
Parameters
GridViewInfo viewInfo

The grid view info that this search row belongs to.

Properties

AllowedStates

Gets the allowed states for this search row. Search rows do not support any special states.

Declaration
public override AllowedGridViewRowInfoStates AllowedStates { get; }
Property Value
AllowedGridViewRowInfoStates

Overrides
GridViewRowInfo.AllowedStates

AutomaticallySelectFirstResult

Gets or sets a value indicating whether the first found cell will be automatically selected and brought into view.

Declaration
public bool AutomaticallySelectFirstResult { get; set; }
Property Value
System.Boolean

Cancel

Gets or sets a value indicating whether the current search operation should be cancelled.

Declaration
public static bool Cancel { get; set; }
Property Value
System.Boolean

CaseSensitive

Gets or sets a value indicating whether search will be case sensitive or case insensitive.

Declaration
public bool CaseSensitive { get; set; }
Property Value
System.Boolean

CloseOnEscape

Gets or sets a value indicating whether to close the search row when escape key is pressed.

Declaration
public bool CloseOnEscape { get; set; }
Property Value
System.Boolean

CompareOptions

Gets or sets the CompareOptions that will be used for case insensitive searches.

Declaration
public CompareOptions CompareOptions { get; set; }
Property Value
System.Globalization.CompareOptions

Culture

Gets or sets the culture that will be used for case insensitive searches.

Declaration
public CultureInfo Culture { get; set; }
Property Value
System.Globalization.CultureInfo

CurrentResultIndex

Gets the index of the currently selected search result.

Declaration
public int CurrentResultIndex { get; }
Property Value
System.Int32

CurrentSearchResultsCount

Gets the current count of search results. This number changes as new results are found.

Declaration
public int CurrentSearchResultsCount { get; }
Property Value
System.Int32

DeferredSearch

Gets or sets a value indicating whether the grid will wait until the Enter key is pressed before it starts a search.

Declaration
public bool DeferredSearch { get; set; }
Property Value
System.Boolean

HighlightResults

Gets or sets a value indicating whether search results should be highlighted in the grid.

Declaration
public bool HighlightResults { get; set; }
Property Value
System.Boolean

InitialSearchResultsTreshold

Gets or sets a value indicating the number of results that will be returned one at a time by the search mechanism.

Declaration
public int InitialSearchResultsTreshold { get; set; }
Property Value
System.Int32

IsSearchAsync

Gets or sets a value indicating whether the search will be performed on a background thread (true) or on the main thread (false).

Declaration
public bool IsSearchAsync { get; set; }
Property Value
System.Boolean

IsSearching

Gets a value indicating if there is an ongoing search operation at the moment.

Declaration
public bool IsSearching { get; }
Property Value
System.Boolean

IsSearchSuspended

Gets a value indicating whether the search functionality is suspended.

Declaration
public bool IsSearchSuspended { get; }
Property Value
System.Boolean

RowElementType

Gets the type of the GridRowElement used to visualize this search row.

Declaration
public override Type RowElementType { get; }
Property Value
System.Type

Overrides
GridViewRowInfo.RowElementType

SearchCriteria

Gets the current/last search criteria.

Declaration
public string SearchCriteria { get; }
Property Value
System.String

SearchDelay

Gets or sets a value indicating how long the grid will wait after a key is pressed until it starts a search operation.

Declaration
public int SearchDelay { get; set; }
Property Value
System.Int32

SearchFromCurrentPosition

Gets or sets a value indicating whether search will start from current position.

Declaration
public bool SearchFromCurrentPosition { get; set; }
Property Value
System.Boolean

SearchResultsGroupSize

Gets or sets a value indicating the number of search results that will be returned as a group after the InitialSearchResultsTreshold has been reached.

Declaration
public int SearchResultsGroupSize { get; set; }
Property Value
System.Int32

ShowClearButton

Gets or sets a value indicating whether to show the clear button in the search row.

Declaration
public bool ShowClearButton { get; set; }
Property Value
System.Boolean

ShowCloseButton

Gets or sets a value indicating whether to show the close button in the search row.

Declaration
public bool ShowCloseButton { get; set; }
Property Value
System.Boolean

Methods

CompareToSystemRowInfo(GridViewSystemRowInfo)

Compares this search row with another system row to determine the relative positioning.

Declaration
protected override int CompareToSystemRowInfo(GridViewSystemRowInfo row)
Parameters
GridViewSystemRowInfo row

The system row to compare with.

Returns
System.Int32

An integer indicating the relative position of this row compared to the specified row.

Overrides
GridViewSystemRowInfo.CompareToSystemRowInfo(GridViewSystemRowInfo)

CreateBackgroundWorker()

Creates and configures the background worker used for asynchronous search operations.

Declaration
protected virtual BackgroundWorker CreateBackgroundWorker()
Returns
System.ComponentModel.BackgroundWorker

A configured System.ComponentModel.BackgroundWorker instance for search operations.

CreatePagedTraverser(Boolean)

Creates a paged traverser for iterating through grid rows when paging is enabled.

Declaration
protected virtual IEnumerator CreatePagedTraverser(bool grouped)
Parameters
System.Boolean grouped

Indicates whether the grid is grouped.

Returns
System.Collections.IEnumerator

An System.Collections.IEnumerator for paged row traversal.

CreateTraverser()

Creates a traverser for iterating through grid rows.

Declaration
protected virtual GridTraverser CreateTraverser()
Returns
GridTraverser

A GridTraverser configured for row traversal.

EnsurePageVisible(GridViewRowInfo)

Ensures that the page containing the specified row is visible when paging is enabled.

Declaration
protected virtual bool EnsurePageVisible(GridViewRowInfo row)
Parameters
GridViewRowInfo row

The row to make visible.

Returns
System.Boolean

True if the page was changed; otherwise, false.

EnsureViewInfoVisible(GridViewRowInfo)

Ensures that the view containing the specified row is visible in hierarchical scenarios.

Declaration
protected virtual bool EnsureViewInfoVisible(GridViewRowInfo row)
Parameters
GridViewRowInfo row

The row to make visible.

Returns
System.Boolean

True if the view was made visible; otherwise, false.

GetCellFormattedValue(GridViewRowInfo, GridViewColumn)

Gets the formatted value of a cell for search purposes.

Declaration
public virtual string GetCellFormattedValue(GridViewRowInfo row, GridViewColumn column)
Parameters
GridViewRowInfo row

The row containing the cell.

GridViewColumn column

The column containing the cell.

Returns
System.String

The formatted string value of the cell.

GetCurrentCellTraverserColumnIndex()

Gets the traverser column index of the current cell.

Declaration
protected virtual int GetCurrentCellTraverserColumnIndex()
Returns
System.Int32

The zero-based traverser column index of the current cell, or -1 if not found.

GetCurrentCellTraverserRowIndex()

Gets the traverser row index of the current cell.

Declaration
protected virtual int GetCurrentCellTraverserRowIndex()
Returns
System.Int32

The zero-based traverser row index of the current cell, or -1 if not found.

MatchesSearchCriteria(String, GridViewRowInfo, GridViewColumn)

Determines whether the specified cell matches the search criteria.

Declaration
protected virtual bool MatchesSearchCriteria(string searchCriteria, GridViewRowInfo row, GridViewColumn col)
Parameters
System.String searchCriteria

The search criteria to match against.

GridViewRowInfo row

The row containing the cell to check.

GridViewColumn col

The column containing the cell to check.

Returns
System.Boolean

True if the cell matches the search criteria; otherwise, false.

OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event and handles specific property changes.

Declaration
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs e

The event arguments containing property change information.

Overrides
GridViewRowInfo.OnPropertyChanged(PropertyChangedEventArgs)

OnSearchProgressChanged(SearchProgressChangedEventArgs)

Raises the SearchProgressChanged event.

Declaration
protected virtual void OnSearchProgressChanged(SearchProgressChangedEventArgs e)
Parameters
SearchProgressChangedEventArgs e

The SearchProgressChangedEventArgs instance containing the event data.

ReportSearchProgress(Int32, GridSearchResultCellInfo, GridSearchResultCellCollection)

Reports the progress of the search operation and updates the search results.

Declaration
protected virtual void ReportSearchProgress(int percent, GridSearchResultCellInfo resultCell, GridSearchResultCellCollection resultCells)
Parameters
System.Int32 percent

The completion percentage of the search operation.

GridSearchResultCellInfo resultCell

A single search result cell to add to the results.

GridSearchResultCellCollection resultCells

A collection of search result cells to add to the results.

ResumeSearch()

Resumes the search functionality after it has been suspended through the SuspendSearch() method.

Declaration
public void ResumeSearch()

ResumeSearch(Boolean)

Resumes the search functionality after it has been suspended through the SuspendSearch() method.

Declaration
public void ResumeSearch(bool performSearch)
Parameters
System.Boolean performSearch

Indicates whether a search should be started after search is resumed.

Search(String)

Initiates a search operation with the specified criteria.

Declaration
public virtual void Search(string criteria)
Parameters
System.String criteria

The search criteria to use.

SelectNextSearchResult()

Selects and navigates to the next search result in the collection.

Declaration
public virtual void SelectNextSearchResult()

SelectPreviousSearchResult()

Selects and navigates to the previous search result in the collection.

Declaration
public virtual void SelectPreviousSearchResult()

SetCurrent(GridSearchResultCellInfo)

Sets the current cell to the specified search result cell and ensures it's visible.

Declaration
protected virtual void SetCurrent(GridSearchResultCellInfo cell)
Parameters
GridSearchResultCellInfo cell

The search result cell to set as current.

SetCurrent(GridSearchResultCellInfo, Boolean)

Sets the current cell to the specified search result cell, with optional thread-safe invocation.

Declaration
protected virtual void SetCurrent(GridSearchResultCellInfo cell, bool checkInvokeRequired)
Parameters
GridSearchResultCellInfo cell

The search result cell to set as current.

System.Boolean checkInvokeRequired

Indicates whether to check if invocation is required for thread safety.

SuspendSearch()

Suspends the search functionality. While suspended no searches will be started.

Declaration
public void SuspendSearch()

TraverseRows(DoWorkEventArgs)

Traverses through all rows in the grid to find matches for the search criteria.

Declaration
protected virtual void TraverseRows(DoWorkEventArgs e = null)
Parameters
System.ComponentModel.DoWorkEventArgs e

The System.ComponentModel.DoWorkEventArgs instance containing the event data for background operations.

Events

SearchProgressChanged

Occurs when the search progress changes during a search operation.

Declaration
public event SearchProgressChangedEventHandler SearchProgressChanged
Event Type
SearchProgressChangedEventHandler

Explicit Interface Implementations

IGridViewEventListener.AnalyzeQueue(List<GridViewEvent>)

Analyzes a queue of events to determine if any special processing is required.

Declaration
bool IGridViewEventListener.AnalyzeQueue(List<GridViewEvent> events)
Parameters
System.Collections.Generic.List<GridViewEvent> events

The list of events to analyze.

Returns
System.Boolean

True if special processing is required; otherwise, false.

Implements
IGridViewEventListener.AnalyzeQueue(List<GridViewEvent>)

IGridViewEventListener.DesiredEvents

Gets the types of grid events that this listener is interested in receiving.

Declaration
GridEventType IGridViewEventListener.DesiredEvents { get; }
Returns
GridEventType

Implements
IGridViewEventListener.DesiredEvents

IGridViewEventListener.DesiredProcessMode

Gets the desired process mode for event handling.

Declaration
GridEventProcessMode IGridViewEventListener.DesiredProcessMode { get; }
Returns
GridEventProcessMode

Implements
IGridViewEventListener.DesiredProcessMode

IGridViewEventListener.PostProcessEvent(GridViewEvent)

Post-processes grid events after they have been handled by other listeners.

Declaration
GridViewEventResult IGridViewEventListener.PostProcessEvent(GridViewEvent eventData)
Parameters
GridViewEvent eventData

The grid event data to process.

Returns
GridViewEventResult

A GridViewEventResult indicating how the event should be handled.

Implements
IGridViewEventListener.PostProcessEvent(GridViewEvent)

IGridViewEventListener.PreProcessEvent(GridViewEvent)

Pre-processes grid events before they are handled by other listeners.

Declaration
GridViewEventResult IGridViewEventListener.PreProcessEvent(GridViewEvent eventData)
Parameters
GridViewEvent eventData

The grid event data to process.

Returns
GridViewEventResult

A GridViewEventResult indicating how the event should be handled.

Implements
IGridViewEventListener.PreProcessEvent(GridViewEvent)

IGridViewEventListener.Priority

Gets the priority level of this event listener.

Declaration
EventListenerPriority IGridViewEventListener.Priority { get; }
Returns
EventListenerPriority

Implements
IGridViewEventListener.Priority

IGridViewEventListener.ProcessEvent(GridViewEvent)

Processes grid events during the main event handling phase.

Declaration
GridViewEventResult IGridViewEventListener.ProcessEvent(GridViewEvent eventData)
Parameters
GridViewEvent eventData

The grid event data to process.

Returns
GridViewEventResult

A GridViewEventResult indicating how the event should be handled.

Implements
IGridViewEventListener.ProcessEvent(GridViewEvent)

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.