New to Telerik UI for WinFormsStart a free 30-day trial

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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

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

Inheritance: objectGridViewRowInfoGridViewSystemRowInfoGridViewSearchRowInfo

Implements: IComparable<GridViewSystemRowInfo>IDataItemIDisposableIGridViewEventListenerIHierarchicalRowINotifyPropertyChangedINotifyPropertyChangingEx...

Inherited Members GridViewSystemRowInfo.IsSystemGridViewSystemRowInfo.IndexGridViewSystemRowInfo.RowPositionGridViewSystemRowInfo.ParentGridViewRowInfo.IsAttachedStateGridViewRowInfo.IsModifiedStateGridViewRowInfo.IsCurrentStateGridViewRowInfo.IsSelectedStateGridViewRowInfo.IsExpandedStateGridViewRowInfo.IsVisibleStateGridViewRowInfo.AllowResizeStateGridViewRowInfo.SuspendNotificationsStateGridViewRowInfo.IsInitializedStateGridViewRowInfo.LastRowInfoStateGridViewRowInfo.stateGridViewRowInfo.SetParent(GridViewRowInfo)GridViewRowInfo.GetActualHeight(IGridView)GridViewRowInfo.InvalidateRow()GridViewRowInfo.EnsureVisible()GridViewRowInfo.EnsureVisible(bool)GridViewRowInfo.Delete()GridViewRowInfo.GetErrorText(string)GridViewRowInfo.HasChildRows()GridViewRowInfo.SuspendPropertyNotifications()GridViewRowInfo.ResumePropertyNotifications()GridViewRowInfo.FindParent<T>()GridViewRowInfo.Dispose()GridViewRowInfo.DispatchEvent(KnownEvents, GridEventType, GridEventDispatchMode, object, object[])GridViewRowInfo.GetEventInfo(GridPropertyChangedEventArgs, out GridEventDispatchMode)GridViewRowInfo.OnBeginEdit()GridViewRowInfo.OnEndEdit()GridViewRowInfo.OnPropertyChanging(PropertyChangingEventArgsEx)GridViewRowInfo.ClearCache()GridViewRowInfo.SetRowStateProperty<T>(string, ref T, T)GridViewRowInfo.SetBooleanProperty(string, int, bool)GridViewRowInfo.ErrorTextGridViewRowInfo.GroupGridViewRowInfo.ViewInfoGridViewRowInfo.ViewTemplateGridViewRowInfo.CellsGridViewRowInfo.TagGridViewRowInfo.DataBoundItemGridViewRowInfo.MinHeightGridViewRowInfo.MaxHeightGridViewRowInfo.HeightGridViewRowInfo.IsCurrentGridViewRowInfo.IsSelectedGridViewRowInfo.IsExpandedGridViewRowInfo.IsVisibleGridViewRowInfo.IsPinnedGridViewRowInfo.PinPositionGridViewRowInfo.IsOddGridViewRowInfo.AllowResizeGridViewRowInfo.HierarchyLevelGridViewRowInfo.ChildRowsGridViewRowInfo.HasChildViewsGridViewRowInfo.PropertyChangedGridViewRowInfo.PropertyChanging...

Constructors

Initializes a new instance of the GridViewSearchRowInfo class.

C#
public GridViewSearchRowInfo(GridViewInfo viewInfo)
Parameters:viewInfoGridViewInfo

The grid view info that this search row belongs to.

Properties

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

C#
public override AllowedGridViewRowInfoStates AllowedStates { get; }

Overrides: GridViewRowInfo.AllowedStates

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

C#
public bool AutomaticallySelectFirstResult { get; set; }

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

C#
public static bool Cancel { get; set; }

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

C#
public bool CaseSensitive { get; set; }

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

C#
public bool CloseOnEscape { get; set; }

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

C#
public CompareOptions CompareOptions { get; set; }

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

C#
public CultureInfo Culture { get; set; }

Gets the index of the currently selected search result.

C#
public int CurrentResultIndex { get; }

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

C#
public int CurrentSearchResultsCount { get; }

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

C#
public bool DeferredSearch { get; set; }

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

C#
public bool HighlightResults { get; set; }

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

C#
public int InitialSearchResultsTreshold { get; set; }

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

C#
public bool IsSearchAsync { get; set; }

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

C#
public bool IsSearching { get; }

Gets a value indicating whether the search functionality is suspended.

C#
public bool IsSearchSuspended { get; }

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

C#
public override Type RowElementType { get; }

Overrides: GridViewRowInfo.RowElementType

Gets the current/last search criteria.

C#
public string SearchCriteria { get; }

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

C#
public int SearchDelay { get; set; }

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

C#
public bool SearchFromCurrentPosition { get; set; }

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

C#
public int SearchResultsGroupSize { get; set; }

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

C#
public bool ShowClearButton { get; set; }

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

C#
public bool ShowCloseButton { get; set; }

Methods

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

C#
protected override int CompareToSystemRowInfo(GridViewSystemRowInfo row)
Parameters:rowGridViewSystemRowInfo

The system row to compare with.

Returns:

int

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

Overrides: GridViewSystemRowInfo.CompareToSystemRowInfo(GridViewSystemRowInfo)

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

C#
protected virtual BackgroundWorker CreateBackgroundWorker()
Returns:

BackgroundWorker

A configured BackgroundWorker instance for search operations.

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

C#
protected virtual IEnumerator CreatePagedTraverser(bool grouped)
Parameters:groupedbool

Indicates whether the grid is grouped.

Returns:

IEnumerator

An IEnumerator for paged row traversal.

Creates a traverser for iterating through grid rows.

C#
protected virtual GridTraverser CreateTraverser()
Returns:

GridTraverser

A GridTraverser configured for row traversal.

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

C#
protected virtual bool EnsurePageVisible(GridViewRowInfo row)
Parameters:rowGridViewRowInfo

The row to make visible.

Returns:

bool

True if the page was changed; otherwise, false.

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

C#
protected virtual bool EnsureViewInfoVisible(GridViewRowInfo row)
Parameters:rowGridViewRowInfo

The row to make visible.

Returns:

bool

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

Gets the formatted value of a cell for search purposes.

C#
public virtual string GetCellFormattedValue(GridViewRowInfo row, GridViewColumn column)
Parameters:rowGridViewRowInfo

The row containing the cell.

columnGridViewColumn

The column containing the cell.

Returns:

string

The formatted string value of the cell.

Gets the traverser column index of the current cell.

C#
protected virtual int GetCurrentCellTraverserColumnIndex()
Returns:

int

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

Gets the traverser row index of the current cell.

C#
protected virtual int GetCurrentCellTraverserRowIndex()
Returns:

int

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

Determines whether the specified cell matches the search criteria.

C#
protected virtual bool MatchesSearchCriteria(string searchCriteria, GridViewRowInfo row, GridViewColumn col)
Parameters:searchCriteriastring

The search criteria to match against.

rowGridViewRowInfo

The row containing the cell to check.

colGridViewColumn

The column containing the cell to check.

Returns:

bool

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

Raises the PropertyChanged event and handles specific property changes.

C#
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters:ePropertyChangedEventArgs

The event arguments containing property change information.

Overrides: GridViewRowInfo.OnPropertyChanged(PropertyChangedEventArgs)

Raises the SearchProgressChanged event.

C#
protected virtual void OnSearchProgressChanged(SearchProgressChangedEventArgs e)
Parameters:eSearchProgressChangedEventArgs

The SearchProgressChangedEventArgs instance containing the event data.

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

C#
protected virtual void ReportSearchProgress(int percent, GridSearchResultCellInfo resultCell, GridSearchResultCellCollection resultCells)
Parameters:percentint

The completion percentage of the search operation.

resultCellGridSearchResultCellInfo

A single search result cell to add to the results.

resultCellsGridSearchResultCellCollection

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

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

C#
public void ResumeSearch()

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

C#
public void ResumeSearch(bool performSearch)
Parameters:performSearchbool

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

Initiates a search operation with the specified criteria.

C#
public virtual void Search(string criteria)
Parameters:criteriastring

The search criteria to use.

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

C#
public virtual void SelectNextSearchResult()

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

C#
public virtual void SelectPreviousSearchResult()

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

C#
protected virtual void SetCurrent(GridSearchResultCellInfo cell, bool checkInvokeRequired)
Parameters:cellGridSearchResultCellInfo

The search result cell to set as current.

checkInvokeRequiredbool

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

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

C#
protected virtual void SetCurrent(GridSearchResultCellInfo cell)
Parameters:cellGridSearchResultCellInfo

The search result cell to set as current.

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

C#
public void SuspendSearch()

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

C#
protected virtual void TraverseRows(DoWorkEventArgs e = null)
Parameters:eDoWorkEventArgs

The DoWorkEventArgs instance containing the event data for background operations.

Events

Occurs when the search progress changes during a search operation.

C#
public event SearchProgressChangedEventHandler SearchProgressChanged