Class
MasterGridViewTemplate

Represents the master template for RadGridView that provides the core functionality for data display, hierarchical relationships, selection management, and event synchronization across the entire grid structure.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class MasterGridViewTemplate : GridViewTemplate, IComponent, IDisposable, IDataItemSource, IHierarchicalRow, INotifyPropertyChangingEx, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IGridViewEventListener

Inheritance: objectMarshalByRefObjectComponentGridViewTemplateMasterGridViewTemplate

Implements: IComponentIDataItemSourceIDisposableIGridViewEventListenerIHierarchicalRowINotifyPropertyChangedINotifyPropertyChangingExISupportInitializeISupportInitializeNotification

Inherited Members GridViewTemplate.OnCreateRowInfo(GridViewCreateRowInfoEventArgs)GridViewTemplate.ProcessColumnPropertyChangedEvent(GridViewColumn, RadPropertyChangedEventArgs)GridViewTemplate.DispatchEvent(GridViewEvent)GridViewTemplate.SuspendEvent(KnownEvents)GridViewTemplate.ResumeEvent(KnownEvents)GridViewTemplate.DispatchEvent(GridViewEvent, bool)GridViewTemplate.OnBindingContextChanged(EventArgs)GridViewTemplate.OnPropertyChanging(string)GridViewTemplate.OnPropertyChanging(PropertyChangingEventArgsEx)GridViewTemplate.OnNotifyPropertyChanged(string)GridViewTemplate.SetProperty<T>(string, ref T, T)GridViewTemplate.BeginInit()GridViewTemplate.ResetCurrentColumn()GridViewTemplate.OnViewChanged(DataViewChangedEventArgs)GridViewTemplate.ClearAllSummariesFromGroups()GridViewTemplate.SetEnableAlternatingRowColor(bool)GridViewTemplate.EnsureHierarchyProvider()GridViewTemplate.EnsureRowType(GridViewTemplate)GridViewTemplate.DeferRefresh()GridViewTemplate.SetError(GridViewCellCancelEventArgs, string)GridViewTemplate.SetError(GridViewCellCancelEventArgs, Exception)GridViewTemplate.SetError(GridViewDataErrorEventArgs)GridViewTemplate.Refresh()GridViewTemplate.Refresh(params GridViewColumn[])GridViewTemplate.EndUpdate()GridViewTemplate.EndUpdate(bool)GridViewTemplate.EndUpdate(DataViewChangedEventArgs)GridViewTemplate.NotifyRowExpanded()GridViewTemplate.LoadFrom(IDataReader)GridViewTemplate.BestFitColumns()GridViewTemplate.BestFitColumns(BestFitColumnMode)GridViewTemplate.ExpandAllGroups()GridViewTemplate.CollapseAllGroups()GridViewTemplate.ExpandAll()GridViewTemplate.CollapseAll()GridViewTemplate.GetDefaultCurrentRow(GridViewTemplate, GridViewInfo, bool)GridViewTemplate.BindingContextGridViewTemplate.ChildRowsGridViewTemplate.IsInitializedGridViewTemplate.SelectNewRowAsCurrentGridViewTemplate.IsUpdatingGridViewTemplate.SelectLastAddedRowGridViewTemplate.NewRowTextGridViewTemplate.TagGridViewTemplate.ShowFilterCellOperatorTextGridViewTemplate.HorizontalScrollStateGridViewTemplate.VerticalScrollStateGridViewTemplate.AllowDragToGroupGridViewTemplate.AllowColumnReorderGridViewTemplate.AllowRowResizeGridViewTemplate.AutoUpdateObjectRelationalSourceGridViewTemplate.CaptionGridViewTemplate.EnableAlternatingRowColorGridViewTemplate.UseCheckboxRowSelectionOnlyGridViewTemplate.SummaryRowGroupHeadersGridViewTemplate.SummaryRowsBottomGridViewTemplate.SummaryRowsTopGridViewTemplate.CaseSensitiveGridViewTemplate.PinnedColumnsGridViewTemplate.DataMemberGridViewTemplate.DataSourceGridViewTemplate.TemplatesGridViewTemplate.MasterViewInfoGridViewTemplate.GroupsGridViewTemplate.ColumnsGridViewTemplate.CurrentColumnGridViewTemplate.RowsGridViewTemplate.ParentGridViewTemplate.HierarchyLevelGridViewTemplate.ColumnCountGridViewTemplate.RowCountGridViewTemplate.AllowEditRowGridViewTemplate.AllowColumnChooserGridViewTemplate.AllowRowReorderGridViewTemplate.AllowColumnHeaderContextMenuGridViewTemplate.AllowRowHeaderContextMenuGridViewTemplate.AllowColumnResizeGridViewTemplate.AllowCellContextMenuGridViewTemplate.AllowAutoSizeColumnsGridViewTemplate.AllowDeleteRowGridViewTemplate.AllowAddNewRowGridViewTemplate.AllowSearchRowGridViewTemplate.EnableSortingGridViewTemplate.EnableCustomSortingGridViewTemplate.EnableGroupingGridViewTemplate.EnableCustomGroupingGridViewTemplate.EnableFilteringGridViewTemplate.EnableCustomFilteringGridViewTemplate.EnableHierarchyFilteringGridViewTemplate.AutoSizeColumnsModeGridViewTemplate.BottomPinnedRowsModeGridViewTemplate.ShowGroupedColumnsGridViewTemplate.AllowMultiColumnSortingGridViewTemplate.ReadOnlyGridViewTemplate.AutoGenerateColumnsGridViewTemplate.FilterDescriptorsGridViewTemplate.SortDescriptorsGridViewTemplate.GroupDescriptorsGridViewTemplate.ViewDefinitionGridViewTemplate.AutoExpandGroupsGridViewTemplate.AddNewRowPositionGridViewTemplate.SearchRowPositionGridViewTemplate.ShowRowHeaderColumnGridViewTemplate.ShowSelectColumnGridViewTemplate.ShowColumnHeadersGridViewTemplate.ShowFilteringRowGridViewTemplate.ShowHeaderCellButtonsGridViewTemplate.ChildViewTabsPositionGridViewTemplate.IsSelfReferenceGridViewTemplate.IsVirtualRowsGridViewTemplate.ShowTotalsGridViewTemplate.ShowSubTotalsGridViewTemplate.ShowCollapsedGroupSummariesGridViewTemplate.ShowParentGroupSummariesGridViewTemplate.ShowChildViewCaptionsGridViewTemplate.ContainsColumnExpressionGridViewTemplate.MergeCellsModeGridViewTemplate.MergeCellsEditModeGridViewTemplate.FilterPredicateGridViewTemplate.GroupPredicateGridViewTemplate.SortComparerGridViewTemplate.GroupComparerGridViewTemplate.ListSourceGridViewTemplate.DataViewGridViewTemplate.ViewChangedGridViewTemplate.CreateRowInfoGridViewTemplate.BindingContextChangedGridViewTemplate.PropertyChangingGridViewTemplate.PropertyChangedGridViewTemplate.InitializedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.CanRaiseEventsComponent.EventsComponent.SiteComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

MasterGridViewTemplate()

Initializes a new instance of the MasterGridViewTemplate class.

Declaration

cs-api-definition
public MasterGridViewTemplate()

Properties

AddNewBoundRowBeforeEdit

Gets or sets a value indicating whether a new bound row should be added to the data source before entering edit mode.

Declaration

cs-api-definition
[Browsable(false)]
public bool AddNewBoundRowBeforeEdit { get; set; }

Property Value

bool

AutoGenerateHierarchy

Gets or sets a value indicating whether the RadGridView will automatically generate hierarchical relationships from the data source structure when data binding is performed.

Declaration

cs-api-definition
[Browsable(false)]
public bool AutoGenerateHierarchy { get; set; }

Property Value

bool

CanChangePage

Gets a value that indicates whether the IPagedCollectionView.PageIndex value is allowed to change.

Declaration

cs-api-definition
public virtual bool CanChangePage { get; }

Property Value

bool

true if the IPagedCollectionView.PageIndex value is allowed to change; otherwise, false.

ClipboardCopyMode

Gets or sets a value that determines whether users can copy cell text values to the clipboard and whether row and column header text is included in the copy operation.

Declaration

cs-api-definition
[Browsable(false)]
public GridViewClipboardCopyMode ClipboardCopyMode { get; set; }

Property Value

GridViewClipboardCopyMode

ClipboardCutMode

Gets or sets a value that determines whether users can cut cell text values to the clipboard and whether row and column header text is included in the cut operation.

Declaration

cs-api-definition
[Browsable(false)]
public GridViewClipboardCutMode ClipboardCutMode { get; set; }

Property Value

GridViewClipboardCutMode

ClipboardPasteMode

Gets or sets a value that determines whether users can paste clipboard content into the RadGridView control and how the paste operation is handled.

Declaration

cs-api-definition
[Browsable(false)]
public GridViewClipboardPasteMode ClipboardPasteMode { get; set; }

Property Value

GridViewClipboardPasteMode

CurrentRow

Gets or sets the currently active row in the grid. Setting this property triggers current row changed events and updates the current column to match the new row's template if applicable.

Declaration

cs-api-definition
[Browsable(false)]
public GridViewRowInfo CurrentRow { get; set; }

Property Value

GridViewRowInfo

CurrentView

Gets or sets the currently active GridViewInfo that represents the view containing the current row and associated template information.

Declaration

cs-api-definition
[Browsable(false)]
public GridViewInfo CurrentView { get; set; }

Property Value

GridViewInfo

EnablePaging

Gets or sets a value indicating whether data pagination is enabled for the current data view, allowing data to be displayed in pages.

Declaration

cs-api-definition
[Browsable(true)]
public bool EnablePaging { get; set; }

Property Value

bool

EventDispatcher

Gets the EventDispatcher instance responsible for managing and dispatching events within the master template. Creates a new instance if one does not already exist.

Declaration

cs-api-definition
[Browsable(false)]
public override EventDispatcher EventDispatcher { get; }

Property Value

EventDispatcher

Overrides GridViewTemplate.EventDispatcher

HierarchyDataProvider

Gets or sets the hierarchy data provider for the master template. Only GridViewSelfReferenceDataProvider and GridViewSelfReferenceLoadOnDemandDataProvider types are supported for master templates.

Declaration

cs-api-definition
[Browsable(false)]
public override GridViewHierarchyDataProvider HierarchyDataProvider { get; set; }

Property Value

GridViewHierarchyDataProvider

Overrides GridViewTemplate.HierarchyDataProvider

IsPageChanging

Gets a value that indicates whether a page index change is in process.

Declaration

cs-api-definition
public virtual bool IsPageChanging { get; }

Property Value

bool

true if the page index is changing; otherwise, false.

MasterTemplate

Gets the root master template. For MasterGridViewTemplate instances, this property returns itself as it represents the top-level template in the hierarchy.

Declaration

cs-api-definition
[Browsable(false)]
public override MasterGridViewTemplate MasterTemplate { get; }

Property Value

MasterGridViewTemplate

Overrides GridViewTemplate.MasterTemplate

MultiSelect

Gets or sets a value indicating whether multiple cells, rows, or columns can be selected simultaneously in the RadGridView. When false, only single selection is allowed.

Declaration

cs-api-definition
public bool MultiSelect { get; set; }

Property Value

bool

Owner

Gets the RadGridView control that owns this master template instance.

Declaration

cs-api-definition
[Browsable(false)]
public RadGridView Owner { get; }

Property Value

RadGridView

PageIndex

Gets the zero-based index of the current page.

Declaration

cs-api-definition
public virtual int PageIndex { get; }

Property Value

int

The zero-based index of the current page.

PageSize

Gets or sets the number of items to display on a page.

Declaration

cs-api-definition
public virtual int PageSize { get; set; }

Property Value

int

The number of items to display on a page.

PagingBeforeGrouping

Gets or sets a value indicating whether paging is performed before grouping or vice versa.

Declaration

cs-api-definition
public virtual bool PagingBeforeGrouping { get; set; }

Property Value

bool

true if paging is performed before grouping; otherwise, false.

Relations

Gets the collection of GridViewRelation instances that define the hierarchical structure and parent-child relationships between templates in the grid.

Declaration

cs-api-definition
[Browsable(false)]
public GridViewRelationCollection Relations { get; }

Property Value

GridViewRelationCollection

SelectedCells

Gets the collection of GridViewCellInfo instances that represent the cells currently selected by the user across all templates in the grid.

Declaration

cs-api-definition
[Browsable(false)]
public GridViewSelectedCellsCollection SelectedCells { get; }

Property Value

GridViewSelectedCellsCollection

SelectedRows

Gets the collection of GridViewRowInfo instances that represent the rows currently selected by the user across all templates in the grid.

Declaration

cs-api-definition
[Browsable(false)]
public GridViewSelectedRowsCollection SelectedRows { get; }

Property Value

GridViewSelectedRowsCollection

SelectionMode

Gets or sets the selection mode that determines how cells, rows, or columns can be selected in the RadGridView.

Declaration

cs-api-definition
public GridViewSelectionMode SelectionMode { get; set; }

Property Value

GridViewSelectionMode

SelfReferenceExpanderColumn

Gets or sets the GridViewColumn that will contain the self-reference expander items for hierarchical data display in self-referencing scenarios.

Declaration

cs-api-definition
[Browsable(true)]
public GridViewColumn SelfReferenceExpanderColumn { get; set; }

Property Value

GridViewColumn

SynchronizationService

Gets the GridViewSynchronizationService instance that coordinates event dispatch and synchronization across all templates and views within the RadGridView hierarchy.

Declaration

cs-api-definition
[Browsable(false)]
public GridViewSynchronizationService SynchronizationService { get; }

Property Value

GridViewSynchronizationService

TotalPages

Gets the total number of pages.

Declaration

cs-api-definition
public virtual int TotalPages { get; }

Property Value

int

VirtualMode

Gets or sets a value indicating whether the grid operates in virtual mode, where data management operations such as sorting, filtering, and grouping are handled by the application rather than the grid control.

Declaration

cs-api-definition
[Browsable(false)]
public bool VirtualMode { get; set; }

Property Value

bool

Methods

AnalyzeQueueCore(List<GridViewEvent>)

Analyzes a queue of grid view events.

Declaration

cs-api-definition
protected override bool AnalyzeQueueCore(List<GridViewEvent> events)

Parameters

events

List<GridViewEvent>

The list of events to analyze.

Returns

bool

true if the queue was analyzed successfully; otherwise, false.

Overrides GridViewTemplate.AnalyzeQueueCore(List<GridViewEvent>)

BeginCellCopy()

Begins the cell copy.

Declaration

cs-api-definition
public void BeginCellCopy()

BeginRowCopy()

Begins the row copy.

Declaration

cs-api-definition
public void BeginRowCopy()

BeginUpdate()

Suspends event dispatching and begins a batch update operation to improve performance when making multiple changes to the grid.

Declaration

cs-api-definition
public override void BeginUpdate()

Overrides GridViewTemplate.BeginUpdate()

ClearSelectedRowsOrCells()

Clears all selected rows and cells from their respective collections in an efficient batch operation.

Declaration

cs-api-definition
protected virtual void ClearSelectedRowsOrCells()

Copy()

Copies the formatted values of the currently selected cells to the clipboard without removing them from the grid.

Declaration

cs-api-definition
public virtual void Copy()

CreateBindingContext()

Creates the binding context for the master template. The master template inherits its binding context from the RadGridView control.

Declaration

cs-api-definition
protected override BindingContext CreateBindingContext()

Returns

BindingContext

Returns null as the master template uses the binding context from its parent RadGridView control.

Overrides GridViewTemplate.CreateBindingContext()

CreateListSource()

Creates and returns a new GridViewListSource instance specifically configured for the master template.

Declaration

cs-api-definition
protected override GridViewListSource CreateListSource()

Returns

GridViewListSource

A new GridViewListSource instance associated with this master template.

Overrides GridViewTemplate.CreateListSource()

Cut()

Moves the currently selected cells or rows to the clipboard, removing their values from the grid.

Declaration

cs-api-definition
public virtual void Cut()

Dispose(bool)

Releases the unmanaged resources used by the Component and optionally releases the managed resources.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides GridViewTemplate.Dispose(bool)

EndCellCopy()

Ends the cell copy.

Declaration

cs-api-definition
public void EndCellCopy()

EndInit()

Completes the initialization of the master template and triggers hierarchy generation if no child templates exist.

Declaration

cs-api-definition
public override void EndInit()

Overrides GridViewTemplate.EndInit()

EndRowCopy()

Ends the row copy.

Declaration

cs-api-definition
public void EndRowCopy()

EndUpdate(bool, DataViewChangedEventArgs)

Resumes event dispatching and ends the batch update operation, triggering hierarchy changed events across all templates in the grid.

Declaration

cs-api-definition
public override void EndUpdate(bool notify, DataViewChangedEventArgs e)

Parameters

notify

bool

Indicates whether to notify listeners of the changes.

e

DataViewChangedEventArgs

The data view changed event arguments containing information about the changes.

Overrides GridViewTemplate.EndUpdate(bool, DataViewChangedEventArgs)

GetClipboardContent()

Retrieves the formatted values that represent the contents of the selected cells for copying to the clipboard without actually placing them on the clipboard.

Declaration

cs-api-definition
public virtual DataObject GetClipboardContent()

Returns

DataObject

A DataObject containing the formatted cell values in multiple clipboard formats.

GetClipboardData()

Retrieves and parses clipboard data in multiple formats (HTML, Text, CSV) and returns it as a structured collection of rows and columns.

Declaration

cs-api-definition
protected virtual List<List<string>> GetClipboardData()

Returns

List<List<string>>

A list of lists representing rows and columns of clipboard data.

GetEventListenerPirotiy()

Gets the event listener priority for the master template, which is set to highest priority to ensure it processes events first.

Declaration

cs-api-definition
protected override EventListenerPriority GetEventListenerPirotiy()

Returns

EventListenerPriority

The Highest priority level.

Overrides GridViewTemplate.GetEventListenerPirotiy()

GetEventProcessMode()

Gets the event processing mode for the master template, enabling all phases of event processing including pre-processing, processing, post-processing, and queue analysis.

Declaration

cs-api-definition
protected override GridEventProcessMode GetEventProcessMode()

Returns

GridEventProcessMode

A combination of GridEventProcessMode flags indicating comprehensive event processing.

Overrides GridViewTemplate.GetEventProcessMode()

GetRowsToPasteIn(int)

Gets the collection of existing rows where clipboard data should be pasted, starting from the current row position.

Declaration

cs-api-definition
protected virtual List<GridViewRowInfo> GetRowsToPasteIn(int numberOfRowsToGet)

Parameters

numberOfRowsToGet

int

The number of rows to retrieve for pasting.

Returns

List<GridViewRowInfo>

A list of GridViewRowInfo objects representing the target rows for pasting.

MoveToFirstPage()

Sets the first page as the current page.

Declaration

cs-api-definition
public virtual bool MoveToFirstPage()

Returns

bool

true if the operation was successful; otherwise, false.

MoveToLastPage()

Sets the last page as the current page.

Declaration

cs-api-definition
public virtual bool MoveToLastPage()

Returns

bool

true if the operation was successful; otherwise, false.

MoveToNextPage()

Moves to the page after the current page.

Declaration

cs-api-definition
public virtual bool MoveToNextPage()

Returns

bool

true if the operation was successful; otherwise, false.

MoveToPage(int)

Requests a page move to the page at the specified zero-based index.

Declaration

cs-api-definition
public virtual bool MoveToPage(int pageIndex)

Parameters

pageIndex

int

The zero-based index of the page to move to.

Returns

bool

true if the operation was successful; otherwise, false.

MoveToPreviousPage()

Moves to the page before the current page.

Declaration

cs-api-definition
public virtual bool MoveToPreviousPage()

Returns

bool

true if the operation was successful; otherwise, false.

OnNotifyPropertyChanged(PropertyChangedEventArgs)

Handles property change notifications, triggering hierarchy generation when DataSource or DataMember properties change.

Declaration

cs-api-definition
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)

Parameters

e

PropertyChangedEventArgs

The PropertyChangedEventArgs containing information about the changed property.

Overrides GridViewTemplate.OnNotifyPropertyChanged(PropertyChangedEventArgs)

OnPageChanged(object, EventArgs)

Called when the page is changed.

Declaration

cs-api-definition
protected virtual void OnPageChanged(object sender, EventArgs e)

Parameters

sender

object

The sender.

e

EventArgs

The EventArgs instance containing the event data.

OnPageChanging(object, PageChangingEventArgs)

Called when the page is changing.

Declaration

cs-api-definition
protected virtual void OnPageChanging(object sender, PageChangingEventArgs e)

Parameters

sender

object

The sender.

e

PageChangingEventArgs

The PageChangingEventArgs instance containing the event data.

OnViewChanged(object, DataViewChangedEventArgs)

Handles view change events and performs additional logic such as paging adjustments when the view is reset.

Declaration

cs-api-definition
protected override void OnViewChanged(object sender, DataViewChangedEventArgs e)

Parameters

sender

object

The source of the event.

e

DataViewChangedEventArgs

The DataViewChangedEventArgs containing information about the view change.

Overrides GridViewTemplate.OnViewChanged(object, DataViewChangedEventArgs)

Paste()

Pastes the contents from the clipboard into the grid starting at the current cell position, creating new rows if necessary when pasting multiple rows.

Declaration

cs-api-definition
public virtual void Paste()

PasteDataToNewRow(List<string>)

Pastes the data to new row.

Declaration

cs-api-definition
protected virtual void PasteDataToNewRow(List<string> rowData)

Parameters

rowData

List<string>

The row data.

PasteDataToRow(List<string>, GridViewRowInfo)

Pastes a row of clipboard data into an existing grid row, performing data type conversion and validation as needed.

Declaration

cs-api-definition
protected virtual void PasteDataToRow(List<string> rowData, GridViewRowInfo row)

Parameters

rowData

List<string>

The list of string values representing the clipboard row data.

row

GridViewRowInfo

The target GridViewRowInfo where the data will be pasted.

PostProcessEventCore(GridViewEvent)

Post-processes grid events, handling row disposal and view change cleanup operations after the main event processing is complete.

Declaration

cs-api-definition
protected override GridViewEventResult PostProcessEventCore(GridViewEvent eventData)

Parameters

eventData

GridViewEvent

The GridViewEvent containing event information.

Returns

GridViewEventResult

A GridViewEventResult indicating the post-processing outcome, or null if no special handling is required.

Overrides GridViewTemplate.PostProcessEventCore(GridViewEvent)

PreProcessEventCore(GridViewEvent)

Pre-processes grid events, particularly current row change events, to determine if the event should continue processing or be canceled.

Declaration

cs-api-definition
protected override GridViewEventResult PreProcessEventCore(GridViewEvent eventData)

Parameters

eventData

GridViewEvent

The GridViewEvent containing event information.

Returns

GridViewEventResult

A GridViewEventResult indicating whether to continue event processing or cancel it.

Overrides GridViewTemplate.PreProcessEventCore(GridViewEvent)

ProcessEventCore(GridViewEvent)

Processes core grid events including current row changes, template data source initialization, and column collection changes.

Declaration

cs-api-definition
protected override GridViewEventResult ProcessEventCore(GridViewEvent eventData)

Parameters

eventData

GridViewEvent

The GridViewEvent containing event information.

Returns

GridViewEventResult

A GridViewEventResult indicating the processing outcome, or null to continue with default processing.

Overrides GridViewTemplate.ProcessEventCore(GridViewEvent)

Reset()

Resets the master template to its default state by clearing all child templates, relations, columns, and resetting the data source and AutoGenerateHierarchy property.

Declaration

cs-api-definition
public void Reset()

ResetCurrentRow()

Resets the current row.

Declaration

cs-api-definition
protected override void ResetCurrentRow()

Overrides GridViewTemplate.ResetCurrentRow()

SetPosition(GridViewRowInfo, GridViewColumn, bool)

Sets the current position in the grid by changing the active row and column, with optional validation of the row change.

Declaration

cs-api-definition
protected bool SetPosition(GridViewRowInfo row, GridViewColumn column, bool validateRowChange)

Parameters

row

GridViewRowInfo

The GridViewRowInfo to set as the current row.

column

GridViewColumn

The GridViewColumn to set as the current column.

validateRowChange

bool

Indicates whether to validate the row change operation.

Returns

bool

True if the position was successfully changed; otherwise, false.

SetPositionCore(GridViewRowInfo, GridViewColumn, GridViewRowInfo, GridViewColumn, bool)

Performs the core logic for setting the current position, including event handling, current row/column changes, and UI updates.

Declaration

cs-api-definition
protected virtual bool SetPositionCore(GridViewRowInfo newRow, GridViewColumn newColumn, GridViewRowInfo oldRow, GridViewColumn oldColumn, bool validateRowChange)

Parameters

newRow

GridViewRowInfo

The new GridViewRowInfo to set as current.

newColumn

GridViewColumn

The new GridViewColumn to set as current.

oldRow

GridViewRowInfo

The previous current row.

oldColumn

GridViewColumn

The previous current column.

validateRowChange

bool

Indicates whether to validate the row change operation.

Returns

bool

True if the position change was successful; otherwise, false.

UnwireEvents()

Unsubscribes from internal events to prevent memory leaks when the master template is being disposed.

Declaration

cs-api-definition
protected override void UnwireEvents()

Overrides GridViewTemplate.UnwireEvents()

WireEvents()

Subscribes to internal events required for the master template functionality, including paging events from the data view.

Declaration

cs-api-definition
protected override void WireEvents()

Overrides GridViewTemplate.WireEvents()