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

This class defines methods used to change the currently selected row and column

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class BaseGridNavigator : IGridNavigator, IGridViewEventListener

Inheritance: objectBaseGridNavigator

Implements: IGridNavigatorIGridViewEventListener

Constructors

C#
public BaseGridNavigator()

Properties

Gets the anchored position.

C#
protected AnchoredPosition AnchoredPosition { get; }
Property Value:

The anchored position.

Gets the render columns associated with the CurrentView in grid

C#
protected IList<GridViewColumn> Columns { get; }

Gets the context.

C#
protected GridNavigationContext Context { get; }
Property Value:

The context.

Gets grid's current column

C#
protected GridViewColumn CurrentColumn { get; }

Gets the column index of the current column in grid

C#
protected int CurrentColumnIndex { get; }

Gets grid's current row

C#
protected GridViewRowInfo CurrentRow { get; }

The RadGridViewElement associated with this navigator

C#
public RadGridViewElement GridViewElement { get; }

Implements: IGridNavigator.GridViewElement

Gets a value that indicates whether the CONTROL button is performed

C#
protected bool IsControlButtonPressed { get; }

Gets a value that indicates whether Mouse Selection is performed

C#
protected bool IsMouseSelection { get; }

Gets a value that indicates whether right mouse button is performed

C#
protected bool IsRightMouseButtonClicked { get; }

Gets a value that indicates whether the SHIFT button is performed

C#
protected bool IsShiftButtonPressed { get; }

The MasterTemplate associated with this navigator

C#
public MasterGridViewTemplate MasterTemplate { get; }

Gets a value indicating whether the grid is in right-to-left mode

C#
protected bool RightToLeft { get; }

Gets the traverser.

C#
protected GridTraverser Traverser { get; }
Property Value:

The traverser.

Gets the GridViewInfo associated with the CurrentView in grid

C#
protected GridViewInfo ViewInfo { get; }

Gets the GridViewTemplate associated with the CurrentView in grid

C#
protected GridViewTemplate ViewTemplate { get; }

Methods

C#
protected virtual bool AnalyzeQueueCore(List<GridViewEvent> events)
Parameters:eventsList<GridViewEvent>Returns:

bool

Begins grid selection

C#
public virtual void BeginSelection(GridNavigationContext context)
Parameters:contextGridNavigationContext

An instance of GridNavigationContext.

Implements: IGridNavigator.BeginSelection(GridNavigationContext)

Cells the select.

C#
protected virtual bool CellSelect(GridViewRowInfo row, GridViewColumn column)
Parameters:rowGridViewRowInfo

The row.

columnGridViewColumn

The column.

Returns:

bool

Clears the selection

C#
public virtual void ClearSelection()

Implements: IGridNavigator.ClearSelection()

Deletes the selected rows.

C#
public virtual bool DeleteSelectedRows()
Returns:

bool

Implements: IGridNavigator.DeleteSelectedRows()

Does the multi select.

C#
protected virtual bool DoMultiSelect(GridViewRowInfo oldRow, GridViewColumn oldColumn, GridViewRowInfo row, GridViewColumn column)
Parameters:oldRowGridViewRowInfo

The old row.

oldColumnGridViewColumn

The old column.

rowGridViewRowInfo

The row.

columnGridViewColumn

The column.

Returns:

bool

Does the multi select core.

C#
protected virtual bool DoMultiSelectCore()
Returns:

bool

Ends selection

C#
public virtual void EndSelection()

Implements: IGridNavigator.EndSelection()

Returns a boolean value indicating whether the full row is selected.

C#
protected virtual bool FullRowSelect(GridViewRowInfo oldCurrentRow, GridViewRowInfo row)
Parameters:oldCurrentRowGridViewRowInfo

The old current row.

rowGridViewRowInfo

The row.

Returns:

bool

C#
protected virtual EventListenerPriority GetEventListenerPirotiy()
Returns:

EventListenerPriority

C#
protected virtual GridEventProcessMode GetEventProcessMode()
Returns:

GridEventProcessMode

Initializes the IGridNavigator with the specified RadGridView

C#
public virtual void Initialize(RadGridViewElement element)
Parameters:elementRadGridViewElement

The RadGridViewElement to associate with this object

Implements: IGridNavigator.Initialize(RadGridViewElement)

Checks whether the specified column is the first one.

C#
public virtual bool IsFirstColumn(GridViewColumn column)
Parameters:columnGridViewColumn

the column to check

Returns:

bool

true if this is the first column

Implements: IGridNavigator.IsFirstColumn(GridViewColumn)

Checks whether the specified column is the first editable one.

C#
public virtual bool IsFirstEditableColumn(GridViewColumn column)
Parameters:columnGridViewColumn

the column to check

Returns:

bool

true if this is the first editable column

Implements: IGridNavigator.IsFirstEditableColumn(GridViewColumn)

Checks whether the specified row is the last one.

C#
public virtual bool IsFirstRow(GridViewRowInfo row)
Parameters:rowGridViewRowInfo

the row to check

Returns:

bool

true if this is the last row

Implements: IGridNavigator.IsFirstRow(GridViewRowInfo)

Checks whether the specified column is the last one.

C#
public virtual bool IsLastColumn(GridViewColumn column)
Parameters:columnGridViewColumn

the column to check

Returns:

bool

true if this is the last column

Implements: IGridNavigator.IsLastColumn(GridViewColumn)

Checks whether the specified column is the last editable one.

C#
public virtual bool IsLastEditableColumn(GridViewColumn column)
Parameters:columnGridViewColumn

the column to check

Returns:

bool

true if this is the last editable column

Implements: IGridNavigator.IsLastEditableColumn(GridViewColumn)

Checks whether the specified row is the first one.

C#
public virtual bool IsLastRow(GridViewRowInfo row)
Parameters:rowGridViewRowInfo

the row to check

Returns:

bool

true if this is the first row

Implements: IGridNavigator.IsLastRow(GridViewRowInfo)

Navigates to row.

C#
protected virtual bool NavigateToRow(GridViewRowInfo row, bool select)
Parameters:rowGridViewRowInfo

The row.

selectbool

The select.

Returns:

bool

C#
protected virtual GridViewEventResult PostProcessEventCore(GridViewEvent eventData)
Parameters:eventDataGridViewEventReturns:

GridViewEventResult

C#
protected virtual GridViewEventResult PreProcessEventCore(GridViewEvent eventData)
Parameters:eventDataGridViewEventReturns:

GridViewEventResult

C#
protected virtual GridViewEventResult ProcessCurrentChangedEvent(GridViewEvent eventData)
Parameters:eventDataGridViewEventReturns:

GridViewEventResult

C#
protected virtual GridViewEventResult ProcessEventCore(GridViewEvent eventData)
Parameters:eventDataGridViewEventReturns:

GridViewEventResult

C#
protected virtual GridViewEventResult ProcessViewChangedEvent(GridViewEvent eventData)
Parameters:eventDataGridViewEventReturns:

GridViewEventResult

Selects the sepcified row as current and specified column as current

C#
public virtual bool Select(GridViewRowInfo row, GridViewColumn column)
Parameters:rowGridViewRowInfo

An instance of GridViewRowInfo.

columnGridViewColumn

An instance of GridViewColumn.

Returns:

bool

Implements: IGridNavigator.Select(GridViewRowInfo, GridViewColumn)

Select all rows and cells

C#
public virtual void SelectAll()

Implements: IGridNavigator.SelectAll()

Selects the cell associated with the respective row and column.

C#
protected virtual bool SelectCore(GridViewRowInfo row, GridViewColumn column)
Parameters:rowGridViewRowInfo

The row.

columnGridViewColumn

The column.

Returns:

bool

Selects the first column as current column in grid

C#
public virtual bool SelectFirstColumn()
Returns:

bool

true if successfull.

Implements: IGridNavigator.SelectFirstColumn()

Selects the first row as current column in grid

C#
public virtual bool SelectFirstRow()
Returns:

bool

true if successfull.

Implements: IGridNavigator.SelectFirstRow()

Selects the last column as current column in grid

C#
public virtual bool SelectLastColumn()
Returns:

bool

true if successfull.

Implements: IGridNavigator.SelectLastColumn()

Selects the last row as current row in grid

C#
public virtual bool SelectLastRow()
Returns:

bool

true if successfull.

Implements: IGridNavigator.SelectLastRow()

Selects the next column as current column in grid

C#
public virtual bool SelectNextColumn()
Returns:

bool

true if successfull.

Implements: IGridNavigator.SelectNextColumn()

Selects the row at specified distance after the current position as current row in grid

C#
public virtual bool SelectNextRow(int step)
Parameters:stepint

The distance to the row

Returns:

bool

true if successfull.

Implements: IGridNavigator.SelectNextRow(int)

Selects the override.

C#
protected virtual bool SelectOverride(GridViewRowInfo row, GridViewColumn column)
Parameters:rowGridViewRowInfo

The row.

columnGridViewColumn

The column.

Returns:

bool

Selects the previous column as current column in grid

C#
public virtual bool SelectPreviousColumn()
Returns:

bool

true if successfull.

Implements: IGridNavigator.SelectPreviousColumn()

Selects the row at specified distance before the current position as current row in grid

C#
public virtual bool SelectPreviousRow(int step)
Parameters:stepint

The distance to the row

Returns:

bool

true if successfull.

Implements: IGridNavigator.SelectPreviousRow(int)

Selects the specified row as current row in grid

C#
public virtual bool SelectRow(GridViewRowInfo row)
Parameters:rowGridViewRowInfo

The GridViewRowInfo to be selected

Returns:

bool

true if successfull.

Implements: IGridNavigator.SelectRow(GridViewRowInfo)

Sets the selected cell.

C#
protected virtual void SetSelectedCell(GridViewRowInfo row, GridViewColumn column)
Parameters:rowGridViewRowInfo

The row.

columnGridViewColumn

The column.