Class GridControlBase
Implements a grid control that displays a grid model.
Inheritance
System.Object
GridControlBase
Implements
System.Windows.Controls.Primitives.IScrollInfo
System.IDisposable
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridControlBase : VirtualizingCellsControl, IScrollBarProvider, IScrollInfo, IDisposable, IGridPrintPaginator
Constructors
GridControlBase()
Declaration
Fields
AddSkinResourceForDataTemplateProperty
AddSkinResourceForDataTemplate Attached Dependency Property
Declaration
public static readonly DependencyProperty AddSkinResourceForDataTemplateProperty
Field Value
Type |
System.Windows.DependencyProperty |
AllowDropDownKeyHandlingProperty
AllowComboBoxDropDownKeyHandling Attached Dependency Property
Declaration
public static readonly DependencyProperty AllowDropDownKeyHandlingProperty
Field Value
Type |
System.Windows.DependencyProperty |
AllowSelectionInDataTemplateProperty
Declaration
public static readonly DependencyProperty AllowSelectionInDataTemplateProperty
Field Value
Type |
System.Windows.DependencyProperty |
CancelModeEvent
Declaration
public static readonly RoutedEvent CancelModeEvent
Field Value
Type |
System.Windows.RoutedEvent |
Declaration
public static readonly RoutedEvent CellButtonClickEvent
Field Value
Type |
System.Windows.RoutedEvent |
CellCancelModeEvent
Declaration
public static readonly RoutedEvent CellCancelModeEvent
Field Value
Type |
System.Windows.RoutedEvent |
CellClickEvent
Declaration
public static readonly RoutedEvent CellClickEvent
Field Value
Type |
System.Windows.RoutedEvent |
CellCursorEvent
Declaration
public static readonly RoutedEvent CellCursorEvent
Field Value
Type |
System.Windows.RoutedEvent |
CellMouseDownEvent
Declaration
public static readonly RoutedEvent CellMouseDownEvent
Field Value
Type |
System.Windows.RoutedEvent |
CellMouseHoverEnterEvent
Declaration
public static readonly RoutedEvent CellMouseHoverEnterEvent
Field Value
Type |
System.Windows.RoutedEvent |
CellMouseHoverEvent
Declaration
public static readonly RoutedEvent CellMouseHoverEvent
Field Value
Type |
System.Windows.RoutedEvent |
CellMouseHoverLeaveEvent
Declaration
public static readonly RoutedEvent CellMouseHoverLeaveEvent
Field Value
Type |
System.Windows.RoutedEvent |
CellMouseMoveEvent
Declaration
public static readonly RoutedEvent CellMouseMoveEvent
Field Value
Type |
System.Windows.RoutedEvent |
CellMouseUpEvent
Declaration
public static readonly RoutedEvent CellMouseUpEvent
Field Value
Type |
System.Windows.RoutedEvent |
CellRenderedEvent
Declaration
public static readonly RoutedEvent CellRenderedEvent
Field Value
Type |
System.Windows.RoutedEvent |
CellRestoreModeEvent
Declaration
public static readonly RoutedEvent CellRestoreModeEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellAcceptedChangesEvent
Declaration
public static readonly RoutedEvent CurrentCellAcceptedChangesEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellActivatedEvent
Declaration
public static readonly RoutedEvent CurrentCellActivatedEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellActivateFailedEvent
Declaration
public static readonly RoutedEvent CurrentCellActivateFailedEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellActivatingEvent
Declaration
public static readonly RoutedEvent CurrentCellActivatingEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellChangedEvent
Declaration
public static readonly RoutedEvent CurrentCellChangedEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellChangingEvent
Declaration
public static readonly RoutedEvent CurrentCellChangingEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellClosedDropDownEvent
Declaration
public static readonly RoutedEvent CurrentCellClosedDropDownEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellConfirmChangesFailedEvent
Declaration
public static readonly RoutedEvent CurrentCellConfirmChangesFailedEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellDeactivatedEvent
Declaration
public static readonly RoutedEvent CurrentCellDeactivatedEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellDeactivateFailedEvent
Declaration
public static readonly RoutedEvent CurrentCellDeactivateFailedEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellDeactivatingEvent
Declaration
public static readonly RoutedEvent CurrentCellDeactivatingEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellEditingCompleteEvent
Declaration
public static readonly RoutedEvent CurrentCellEditingCompleteEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellKeyDownEvent
Declaration
public static readonly RoutedEvent CurrentCellKeyDownEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellMovedEvent
Declaration
public static readonly RoutedEvent CurrentCellMovedEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellMoveFailedEvent
Declaration
public static readonly RoutedEvent CurrentCellMoveFailedEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellMovingEvent
Declaration
public static readonly RoutedEvent CurrentCellMovingEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellPreviewKeyDownEvent
Declaration
public static readonly RoutedEvent CurrentCellPreviewKeyDownEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellRejectedChangesEvent
Declaration
public static readonly RoutedEvent CurrentCellRejectedChangesEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellShowedDropDownEvent
Declaration
public static readonly RoutedEvent CurrentCellShowedDropDownEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellShowingDropDownEvent
Declaration
public static readonly RoutedEvent CurrentCellShowingDropDownEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellStartEditingEvent
Declaration
public static readonly RoutedEvent CurrentCellStartEditingEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellValidatedEvent
Declaration
public static readonly RoutedEvent CurrentCellValidatedEvent
Field Value
Type |
System.Windows.RoutedEvent |
CurrentCellValidatingEvent
Declaration
public static readonly RoutedEvent CurrentCellValidatingEvent
Field Value
Type |
System.Windows.RoutedEvent |
DropDownSelectionChangedEvent
Declaration
public static readonly RoutedEvent DropDownSelectionChangedEvent
Field Value
Type |
System.Windows.RoutedEvent |
IgnoreChangedEventProperty
Returns the cell renderer of an UIElement inside a cell. When the editor
inside a cell has children and you query this attached property for a child it will query the top-most
parent element of the cell renderer for the value of the property.
Declaration
public static readonly DependencyProperty IgnoreChangedEventProperty
Field Value
Type |
System.Windows.DependencyProperty |
MoveCurrentCellDirectionEvent
Declaration
public static readonly RoutedEvent MoveCurrentCellDirectionEvent
Field Value
Type |
System.Windows.RoutedEvent |
PrepareRenderCellEvent
Declaration
public static readonly RoutedEvent PrepareRenderCellEvent
Field Value
Type |
System.Windows.RoutedEvent |
previous
Declaration
public GridRangeInfo previous
Field Value
PrintDescriptionProperty
Declaration
public static readonly DependencyProperty PrintDescriptionProperty
Field Value
Type |
System.Windows.DependencyProperty |
Declaration
public static readonly DependencyProperty PrintFooterHeightProperty
Field Value
Type |
System.Windows.DependencyProperty |
Declaration
public static readonly DependencyProperty PrintFooterTemplateProperty
Field Value
Type |
System.Windows.DependencyProperty |
Declaration
public static readonly DependencyProperty PrintHeaderHeightProperty
Field Value
Type |
System.Windows.DependencyProperty |
Declaration
public static readonly DependencyProperty PrintHeaderTemplateProperty
Field Value
Type |
System.Windows.DependencyProperty |
PrintPageMarginProperty
Declaration
public static readonly DependencyProperty PrintPageMarginProperty
Field Value
Type |
System.Windows.DependencyProperty |
QueryAllowDragColumnEvent
Declaration
public static readonly RoutedEvent QueryAllowDragColumnEvent
Field Value
Type |
System.Windows.RoutedEvent |
QueryNextCurrentCellPositionEvent
Declaration
public static readonly RoutedEvent QueryNextCurrentCellPositionEvent
Field Value
Type |
System.Windows.RoutedEvent |
ResizingColumnsEvent
Declaration
public static readonly RoutedEvent ResizingColumnsEvent
Field Value
Type |
System.Windows.RoutedEvent |
ResizingRowsEvent
Declaration
public static readonly RoutedEvent ResizingRowsEvent
Field Value
Type |
System.Windows.RoutedEvent |
SelectionChangedEvent
Occurs after the model updates its internal data structures when the model is in the process of selecting
a range of cells.
Declaration
public static RoutedEvent SelectionChangedEvent
Field Value
Type |
System.Windows.RoutedEvent |
Declaration
public static readonly RoutedEvent WrapCellNextControlInFormEvent
Field Value
Type |
System.Windows.RoutedEvent |
Properties
AllowDragColumns
Gets or sets a value indicating whether the grid columns can be dragged.
Declaration
public bool AllowDragColumns { get; set; }
Property Value
AllowDragDrop
Gets or sets a value indicating whether the grid columns can be dragged.
Declaration
public bool AllowDragDrop { get; set; }
Property Value
Gets the auto scroller which provides automatic scrolling of content when the user drags the pressed
mouse to an edge of the control.
Declaration
public GridControlDragAutoScroller AutoScroller { get; }
Property Value
CellRenderers
Declaration
public GridCellRendererCollection CellRenderers { get; }
Property Value
Examples
The following examples show how to get a reference to the renderer for a specific cell.
GridStyleInfo style = Model[rowIndex, colIndex];
GridCellRendererBase renderer =(GridCellRendererBase)CellRenderers[style.CellType];
CellSpanBackgrounds
Returns the cell spanned backgrounds.
Declaration
public GridCellSpanBackgroundInfoCollection CellSpanBackgrounds { get; }
Property Value
ColumnWidths
Returns the column widths for the grid.
Declaration
public IEditableLineSizeHost ColumnWidths { get; }
Property Value
CoveredCells
Returns the covered cells.
Declaration
public GridCoveredCellInfoCollection CoveredCells { get; }
Property Value
CurrentCell
Declaration
public GridCurrentCell CurrentCell { get; }
Property Value
CurrentCellBorderWeight
Obsolete. Use Model.Options.CurrentCellBorderWitdh.
Declaration
public double CurrentCellBorderWeight { get; set; }
Property Value
ExternalMove
Used by GridSelectCellsMouseController.
Declaration
public GridCurrentCellMoveDelegateHandler ExternalMove { get; set; }
Property Value
Gets or sets the footer columns count.
Declaration
public int FooterColumns { get; set; }
Property Value
Gets or sets the footer row count.
Declaration
public int FooterRows { get; set; }
Property Value
FrozenColumns
Gets or sets the frozen column count.
Declaration
public int FrozenColumns { get; set; }
Property Value
FrozenRows
Gets or sets the frozen row count.
Declaration
public int FrozenRows { get; set; }
Property Value
HighlightBorder
Obsolete. Use Model.Options.HighlightSelectionBorder.
Declaration
public Brush HighlightBorder { get; set; }
Property Value
Type |
System.Windows.Media.Brush |
HighlightBrush
Obsolete. Use Model.Options.HighlightSelectionAlphaBlend.
Declaration
public Brush HighlightBrush { get; set; }
Property Value
Type |
System.Windows.Media.Brush |
ImageCells
Declaration
public GridOverlappingCellInfoCollection ImageCells { get; }
Property Value
Model
Declaration
public GridModel Model { get; set; }
Property Value
NavigateWithArrowKeysCellsRange
The range of cells in the grid that can be navigated to using arrow keys.
This range can but does not need to include header and footer rows and columns.
The default scenario is that header and footer rows and columns are excluded
Cells outside the range can still be clicked on and be made the current cell but they
will be skipped when the user navigate with arrow keys.
Declaration
public virtual GridRangeInfo NavigateWithArrowKeysCellsRange { get; }
Property Value
OleDragDropEventsTarget
Declaration
public IGridOleDragDropEventsTarget OleDragDropEventsTarget { get; set; }
Property Value
PageCount
Gets the number of pages.
Declaration
public int PageCount { get; }
Property Value
PaneDesc
Returns a System.String that represents the current object.
Declaration
public string PaneDesc { get; }
Property Value
PrintColumns
Declaration
public int[] PrintColumns { get; set; }
Property Value
PrintDescription
Specifies a description of the job to be printed.
This text will appear in the Print Dialog.
Declaration
public string PrintDescription { get; set; }
Property Value
Gets or sets the height for the print footer.
Declaration
public double PrintFooterHeight { get; set; }
Property Value
Gets or sets a data template for the print footer.
Declaration
public DataTemplate PrintFooterTemplate { get; set; }
Property Value
Type |
System.Windows.DataTemplate |
Gets or sets the height for the print header.
Declaration
public double PrintHeaderHeight { get; set; }
Property Value
Gets or sets a data template for the print header.
Declaration
public DataTemplate PrintHeaderTemplate { get; set; }
Property Value
Type |
System.Windows.DataTemplate |
PrintPageMargin
Gets or sets the marign for the print page.
Declaration
public Thickness PrintPageMargin { get; set; }
Property Value
Type |
System.Windows.Thickness |
PrintRange
Gets or sets the grid range that is selected for printing.
Declaration
public GridRangeInfo PrintRange { get; set; }
Property Value
RenderStyles
Gets a collection of rendering styles for grid cells.
Declaration
public GridControlRenderStyles RenderStyles { get; }
Property Value
ResetHiddenWhenFreezing
Get or set a value that is used to check whether the frozen rows needs to reset the hidden rows/columns to avoid resetting the previous hidden rows/columns
Declaration
public bool ResetHiddenWhenFreezing { get; set; }
Property Value
RowHeights
Returns the row heights for the grid.
Declaration
public IEditableLineSizeHost RowHeights { get; }
Property Value
ScalingOptions
Declaration
public ScalingOptions ScalingOptions { get; set; }
Property Value
The range of cells in the grid that can be scrolled. This excludes
all frozen rows and columns.
Declaration
public GridRangeInfo ScrollCellsRange { get; }
Property Value
Methods
add_CancelMode(GridRoutedEventHandler)
Declaration
public void add_CancelMode(GridRoutedEventHandler value)
Parameters
Declaration
public void add_CellButtonClick(GridCellButtonClickEventHandler value)
Parameters
add_CellCancelMode(GridRoutedEventHandler)
Declaration
public void add_CellCancelMode(GridRoutedEventHandler value)
Parameters
add_CellClick(GridCellClickEventHandler)
Declaration
public void add_CellClick(GridCellClickEventHandler value)
Parameters
Declaration
public void add_CellCommentOpening(GridControlBase.GridCellCommentOpeningEvent value)
Parameters
add_CellCursor(GridCellCursorEventHandler)
Declaration
public void add_CellCursor(GridCellCursorEventHandler value)
Parameters
add_CellMouseDown(GridCellMouseControllerEventHandler)
Declaration
public void add_CellMouseDown(GridCellMouseControllerEventHandler value)
Parameters
add_CellMouseHover(GridCellMouseControllerEventHandler)
Declaration
public void add_CellMouseHover(GridCellMouseControllerEventHandler value)
Parameters
add_CellMouseHoverEnter(GridCellMouseEventHandler)
Declaration
public void add_CellMouseHoverEnter(GridCellMouseEventHandler value)
Parameters
add_CellMouseHoverLeave(GridCellMouseEventHandler)
Declaration
public void add_CellMouseHoverLeave(GridCellMouseEventHandler value)
Parameters
add_CellMouseMove(GridCellMouseControllerEventHandler)
Declaration
public void add_CellMouseMove(GridCellMouseControllerEventHandler value)
Parameters
add_CellMouseUp(GridCellMouseControllerEventHandler)
Declaration
public void add_CellMouseUp(GridCellMouseControllerEventHandler value)
Parameters
add_CellRendered(GridCellRenderEventHandler)
Declaration
public void add_CellRendered(GridCellRenderEventHandler value)
Parameters
add_CellRestoreMode(GridRoutedEventHandler)
Declaration
public void add_CellRestoreMode(GridRoutedEventHandler value)
Parameters
Declaration
public void add_CellToolTipOpening(GridControlBase.GridCellToolTipOpeningEvent value)
Parameters
add_ColumnsInserted(GridRangeInsertedEventHandler)
Declaration
public void add_ColumnsInserted(GridRangeInsertedEventHandler value)
Parameters
add_ColumnsMoved(GridRangeMovedEventHandler)
Declaration
public void add_ColumnsMoved(GridRangeMovedEventHandler value)
Parameters
add_ColumnsRemoved(GridRangeRemovedEventHandler)
Declaration
public void add_ColumnsRemoved(GridRangeRemovedEventHandler value)
Parameters
add_CommitCellInfo(GridCommitCellInfoEventHandler)
Declaration
public void add_CommitCellInfo(GridCommitCellInfoEventHandler value)
Parameters
add_CommittedCellInfo(GridCommitCellInfoEventHandler)
Declaration
public void add_CommittedCellInfo(GridCommitCellInfoEventHandler value)
Parameters
add_CurrentCellAcceptedChanges(GridRoutedEventHandler)
Declaration
public void add_CurrentCellAcceptedChanges(GridRoutedEventHandler value)
Parameters
add_CurrentCellActivated(GridRoutedEventHandler)
Declaration
public void add_CurrentCellActivated(GridRoutedEventHandler value)
Parameters
add_CurrentCellActivateFailed(GridCurrentCellActivateFailedEventHandler)
Declaration
public void add_CurrentCellActivateFailed(GridCurrentCellActivateFailedEventHandler value)
Parameters
add_CurrentCellActivating(GridCurrentCellActivatingEventHandler)
Declaration
public void add_CurrentCellActivating(GridCurrentCellActivatingEventHandler value)
Parameters
add_CurrentCellChanged(GridRoutedEventHandler)
Declaration
public void add_CurrentCellChanged(GridRoutedEventHandler value)
Parameters
add_CurrentCellChanging(GridCancelRoutedEventHandler)
Declaration
public void add_CurrentCellChanging(GridCancelRoutedEventHandler value)
Parameters
add_CurrentCellClosedDropDown(GridRoutedEventHandler)
Declaration
public void add_CurrentCellClosedDropDown(GridRoutedEventHandler value)
Parameters
add_CurrentCellConfirmChangesFailed(GridRoutedEventHandler)
Declaration
public void add_CurrentCellConfirmChangesFailed(GridRoutedEventHandler value)
Parameters
add_CurrentCellDeactivated(GridCurrentCellDeactivatedEventHandler)
Declaration
public void add_CurrentCellDeactivated(GridCurrentCellDeactivatedEventHandler value)
Parameters
add_CurrentCellDeactivateFailed(GridRoutedEventHandler)
Declaration
public void add_CurrentCellDeactivateFailed(GridRoutedEventHandler value)
Parameters
add_CurrentCellDeactivating(GridCancelRoutedEventHandler)
Declaration
public void add_CurrentCellDeactivating(GridCancelRoutedEventHandler value)
Parameters
add_CurrentCellEditingComplete(GridRoutedEventHandler)
Declaration
public void add_CurrentCellEditingComplete(GridRoutedEventHandler value)
Parameters
add_CurrentCellKeyDown(GridCellKeyEventHandler)
Declaration
public void add_CurrentCellKeyDown(GridCellKeyEventHandler value)
Parameters
add_CurrentCellLoaded(GridControlBase.GridCurrentCellLoadedEvent)
Declaration
public void add_CurrentCellLoaded(GridControlBase.GridCurrentCellLoadedEvent value)
Parameters
add_CurrentCellMoved(GridCurrentCellMovedEventHandler)
Declaration
public void add_CurrentCellMoved(GridCurrentCellMovedEventHandler value)
Parameters
add_CurrentCellMoveFailed(GridCurrentCellMoveFailedEventHandler)
Declaration
public void add_CurrentCellMoveFailed(GridCurrentCellMoveFailedEventHandler value)
Parameters
add_CurrentCellMoving(GridCurrentCellMovingEventHandler)
Declaration
public void add_CurrentCellMoving(GridCurrentCellMovingEventHandler value)
Parameters
add_CurrentCellPreviewKeyDown(GridCellKeyEventHandler)
Declaration
public void add_CurrentCellPreviewKeyDown(GridCellKeyEventHandler value)
Parameters
add_CurrentCellRejectedChanges(GridRoutedEventHandler)
Declaration
public void add_CurrentCellRejectedChanges(GridRoutedEventHandler value)
Parameters
add_CurrentCellShowedDropDown(GridRoutedEventHandler)
Declaration
public void add_CurrentCellShowedDropDown(GridRoutedEventHandler value)
Parameters
add_CurrentCellShowingDropDown(GridCurrentCellShowingDropDownEventHandler)
Declaration
public void add_CurrentCellShowingDropDown(GridCurrentCellShowingDropDownEventHandler value)
Parameters
add_CurrentCellStartEditing(GridCancelRoutedEventHandler)
Declaration
public void add_CurrentCellStartEditing(GridCancelRoutedEventHandler value)
Parameters
add_CurrentCellValidated(GridRoutedEventHandler)
Declaration
public void add_CurrentCellValidated(GridRoutedEventHandler value)
Parameters
add_CurrentCellValidating(CurrentCellValidatingEventHandler)
Declaration
public void add_CurrentCellValidating(CurrentCellValidatingEventHandler value)
Parameters
add_DropDownSelectionChanged(GridCellComboValueChangedEventHandler)
Declaration
public void add_DropDownSelectionChanged(GridCellComboValueChangedEventHandler value)
Parameters
add_MoveCurrentCellDirection(GridMoveCurrentCellDirectionEventHandler)
Declaration
public void add_MoveCurrentCellDirection(GridMoveCurrentCellDirectionEventHandler value)
Parameters
add_ParseCommonFormats(GridCellTextEventHandler)
Declaration
public void add_ParseCommonFormats(GridCellTextEventHandler value)
Parameters
add_PrepareRenderCell(GridPrepareRenderCellEventHandler)
Declaration
public void add_PrepareRenderCell(GridPrepareRenderCellEventHandler value)
Parameters
add_QueryAllowDragColumn(GridQueryDragColumnHeaderEventHandler)
Declaration
public void add_QueryAllowDragColumn(GridQueryDragColumnHeaderEventHandler value)
Parameters
add_QueryBaseStyles(GridQueryBaseStylesEventHandler)
Declaration
public void add_QueryBaseStyles(GridQueryBaseStylesEventHandler value)
Parameters
add_QueryCanDragRange(GridExcelLikeDragRangeEventHandler)
Declaration
public void add_QueryCanDragRange(GridExcelLikeDragRangeEventHandler value)
Parameters
add_QueryCellFormattedText(GridCellTextEventHandler)
Declaration
public void add_QueryCellFormattedText(GridCellTextEventHandler value)
Parameters
add_QueryCellInfo(GridQueryCellInfoEventHandler)
Declaration
public void add_QueryCellInfo(GridQueryCellInfoEventHandler value)
Parameters
add_QueryCellModel(GridQueryCellModelEventHandler)
Declaration
public void add_QueryCellModel(GridQueryCellModelEventHandler value)
Parameters
add_QueryCellSpanBackgrounds(GridQueryCellSpanBackgroundsEventHandler)
Declaration
public void add_QueryCellSpanBackgrounds(GridQueryCellSpanBackgroundsEventHandler value)
Parameters
add_QueryCellText(GridCellTextEventHandler)
Declaration
public void add_QueryCellText(GridCellTextEventHandler value)
Parameters
add_QueryCoveredRange(GridQueryCoveredRangeEventHandler)
Declaration
public void add_QueryCoveredRange(GridQueryCoveredRangeEventHandler value)
Parameters
add_QueryNextCurrentCellPosition(GridQueryNextCurrentCellPositionEventHandler)
Declaration
public void add_QueryNextCurrentCellPosition(GridQueryNextCurrentCellPositionEventHandler value)
Parameters
add_ResizingColumns(GridResizingColumnsEventHandler)
Declaration
public void add_ResizingColumns(GridResizingColumnsEventHandler value)
Parameters
add_ResizingRows(GridResizingRowsEventHandler)
Declaration
public void add_ResizingRows(GridResizingRowsEventHandler value)
Parameters
add_RowsInserted(GridRangeInsertedEventHandler)
Declaration
public void add_RowsInserted(GridRangeInsertedEventHandler value)
Parameters
add_RowsMoved(GridRangeMovedEventHandler)
Declaration
public void add_RowsMoved(GridRangeMovedEventHandler value)
Parameters
add_RowsRemoved(GridRangeRemovedEventHandler)
Declaration
public void add_RowsRemoved(GridRangeRemovedEventHandler value)
Parameters
add_SaveCellFormattedText(GridCellTextEventHandler)
Declaration
public void add_SaveCellFormattedText(GridCellTextEventHandler value)
Parameters
add_SaveCellText(GridCellTextEventHandler)
Declaration
public void add_SaveCellText(GridCellTextEventHandler value)
Parameters
add_SelectionChanged(GridSelectionChangedEventHandler)
Declaration
public void add_SelectionChanged(GridSelectionChangedEventHandler value)
Parameters
add_SelectionChanging(GridSelectionChangingEventHandler)
Declaration
public void add_SelectionChanging(GridSelectionChangingEventHandler value)
Parameters
Declaration
public void add_WrapCellNextControlInForm(GridWrapCellNextControlInFormEventHandler value)
Parameters
ArrangeCellUIElements(Size)
Declaration
protected override void ArrangeCellUIElements(Size arrangeSize)
Parameters
Type |
Name |
Description |
System.Windows.Size |
arrangeSize |
|
Overrides
CanAutoCalculateWidth()
Declaration
protected override bool CanAutoCalculateWidth()
Returns
Overrides
CreateGridViewMoveCellsState()
Declaration
protected virtual GridViewMoveCellsState CreateGridViewMoveCellsState()
Returns
CreateOleDropTarget(GridControlBase, GridDragDropFlags)
Creates a GridOleDropTarget object and calls GridOleDropTarget.Register. Override this
method if you want to customize behavior of the GridOleDropTarget object.
Declaration
protected virtual GridOleDropTarget CreateOleDropTarget(GridControlBase grid, GridDragDropFlags flags)
Parameters
Returns
Dispose(Boolean)
Declaration
public override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
DrawSelectedCellsRectangle(DrawingContext, Rect)
Declaration
protected virtual void DrawSelectedCellsRectangle(DrawingContext dccBackground, Rect r)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dccBackground |
|
System.Windows.Rect |
r |
|
EnableOleDataSource()
Enables OLE Data Source support for this control with default support
for Text and Styles format.
Declaration
public bool EnableOleDataSource()
Returns
Type |
Description |
System.Boolean |
True if support was enabled successfully; False otherwise.
|
EnableOleDataSource(GridDragDropFlags)
Enables OLE Data Source support for this control with default support
for Text and Styles format.
Declaration
public bool EnableOleDataSource(GridDragDropFlags flags)
Parameters
Returns
Type |
Description |
System.Boolean |
True if support was enabled successfully; False otherwise.
|
EnableOleDropTarget()
Enables OLE Drop Target support for this control with default support
for Text and Styles format.
Declaration
public void EnableOleDropTarget()
EnableOleDropTarget(GridDragDropFlags)
Enables OLE Drop Target support for this control with GridDragDropFlags
options specified.
Declaration
public void EnableOleDropTarget(GridDragDropFlags flags)
Parameters
ExpandSelectedCellsRange(GridRangeInfo)
Expands the range of selected cells.
Declaration
public virtual GridRangeInfo ExpandSelectedCellsRange(GridRangeInfo selectedCells)
Parameters
Type |
Name |
Description |
GridRangeInfo |
selectedCells |
The selected cells range.
|
Returns
GetAddSkinResourceForDataTemplate(DependencyObject)
Gets the AddSkinResourceForDataTemplate property. This dependency property
indicates whether skins have to be added for DataTemplate as MergedDictionaries.
Declaration
public static bool GetAddSkinResourceForDataTemplate(DependencyObject d)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
d |
|
Returns
GetAllowDropDownKeyHandling(DependencyObject)
Gets the AllowComboBoxDropDownKeyHandling property. This dependency property
indicates whether ComboBox DropDown should handle up down key.
Declaration
public static bool GetAllowDropDownKeyHandling(DependencyObject d)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
d |
|
Returns
GetAllowSelectionInDataTemplate(DependencyObject)
Declaration
public static bool GetAllowSelectionInDataTemplate(DependencyObject o)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
o |
|
Returns
GetAutomationTemplateElement(DependencyObject)
Gets value true / false if this is a templated element, Set this to true if the AutomationElement returning from a grid cell has to be from the underlying
control.
Declaration
public static bool GetAutomationTemplateElement(DependencyObject dpo)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dpo |
Dependency Object.
|
Returns
Type |
Description |
System.Boolean |
true / false
|
GetCellBackground(IRenderCellInfo, Boolean)
Declaration
protected override Brush GetCellBackground(IRenderCellInfo ci, bool combineBackgrounds)
Parameters
Type |
Name |
Description |
IRenderCellInfo |
ci |
The cell style.
|
System.Boolean |
combineBackgrounds |
|
Returns
Type |
System.Windows.Media.Brush |
Overrides
GetCellRenderer(IRenderCellInfo)
Declaration
protected override ICellRenderer GetCellRenderer(IRenderCellInfo cellInfo)
Parameters
Returns
Overrides
GetCellRenderer(DependencyObject)
Gets the attached dependency property value.
Declaration
public static IGridCellRenderer GetCellRenderer(DependencyObject dpo)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dpo |
The instance to be queried for the effective value of the dependency property.
|
Returns
Type |
Description |
IGridCellRenderer |
Returns the effective value for the given instance.
|
GetDelayLoad(DependencyObject)
Gets a boolean value if the DependencyObject should be loaded with a delay when it is created.
Declaration
public static bool GetDelayLoad(DependencyObject dpo)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dpo |
The dpo.
|
Returns
GetIgnoreChangedEvent(DependencyObject)
Gets the attached dependency property value.
Declaration
public static Nullable<bool> GetIgnoreChangedEvent(DependencyObject dpo)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dpo |
The instance to be queried for the effective value of the dependency property.
|
Returns
Type |
Description |
System.Nullable<System.Boolean> |
Returns the effective value for the given instance.
|
GetNextCurrentCellPosition(GridDirectionType, ref Int32, ref Int32)
Determines the next position for the current cell for a given direction. Normally, cells that are not
marked as enabled with Enabled will be skipped but you can hook into this
mechanism by implementing an event handler for QueryNextCurrentCellPosition.
Declaration
public bool GetNextCurrentCellPosition(GridDirectionType direction, ref int rowIndex, ref int colIndex)
Parameters
Type |
Name |
Description |
GridDirectionType |
direction |
The GridDirectionType that specifies the direction of the current cell movement.
|
System.Int32 |
rowIndex |
The row index.
|
System.Int32 |
colIndex |
The column index.
|
Returns
Type |
Description |
System.Boolean |
True if an enabled cell was found; False otherwise.
|
GetRenderCellInfo(Int32, Int32)
Declaration
protected override sealed IRenderCellInfo GetRenderCellInfo(int rowIndex, int columnIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
rowIndex |
|
System.Int32 |
columnIndex |
|
Returns
Overrides
GetRenderStyleInfo(RowColumnIndex)
Gets the rendering style for a cell given its row and column indices.
Declaration
public GridRenderStyleInfo GetRenderStyleInfo(RowColumnIndex cellRowColumnIndex)
Parameters
Returns
GetRenderStyleInfo(RowColumnIndex, Boolean)
Gets the rendering style for a cell given its row and column indices.
Declaration
public GridRenderStyleInfo GetRenderStyleInfo(RowColumnIndex cellRowColumnIndex, bool createDisposableObject)
Parameters
Type |
Name |
Description |
RowColumnIndex |
cellRowColumnIndex |
Row and column indices as RowColumnIndex.
|
System.Boolean |
createDisposableObject |
When true, returns a render style object that can be disposed.
|
Returns
GetRenderStyleInfo(Int32, Int32)
Gets the rendering style for a cell given its row and column indices.
Declaration
public GridRenderStyleInfo GetRenderStyleInfo(int rowIndex, int columnIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
rowIndex |
Row index.
|
System.Int32 |
columnIndex |
Column index.
|
Returns
GetRenderStyleInfo(Int32, Int32, Boolean)
Gets the rendering style for a cell given its row and column indices.
Declaration
public GridRenderStyleInfo GetRenderStyleInfo(int rowIndex, int columnIndex, bool createDisposableObject)
Parameters
Type |
Name |
Description |
System.Int32 |
rowIndex |
Row index.
|
System.Int32 |
columnIndex |
Column index.
|
System.Boolean |
createDisposableObject |
When true, returns a render style object that can be disposed.
|
Returns
GetRenderStyleInfo(DependencyObject)
Gets the attached dependency property value.
Declaration
public static GridRenderStyleInfo GetRenderStyleInfo(DependencyObject dpo)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dpo |
The instance to be queried for the effective value of the dependency property.
|
Returns
InvalidateCell(CellSpanInfoBase)
Reset cached values for the cell span and reset any visuals associated with the cell. You need
to call InvalidateVisual or RenderNow after this method.
Declaration
public override void InvalidateCell(CellSpanInfoBase span)
Parameters
Type |
Name |
Description |
CellSpanInfoBase |
span |
Cell spanned range to be invalidated.
|
Overrides
InvalidateCell(RowColumnIndex)
Reset cached values for cell and reset any visuals associated with the cell. You need
to call InvalidateVisual or RenderNow after this method.
Declaration
public override void InvalidateCell(RowColumnIndex cellRowColumnIndex)
Parameters
Overrides
InvalidateCell(GridRangeInfo)
Reset cached values for a range of cells and reset any visuals associated with the cell. You need
to call InvalidateVisual or RenderNow after this method.
Declaration
public void InvalidateCell(GridRangeInfo gridRangeInfo)
Parameters
Type |
Name |
Description |
GridRangeInfo |
gridRangeInfo |
A range of cells to invalidate.
|
InvalidateRenderCell(GridRangeInfo)
Invalidate cell so that PrepareRenderCell will get called again but not QueryCellStyle.
Declaration
public void InvalidateRenderCell(GridRangeInfo range)
Parameters
Type |
Name |
Description |
GridRangeInfo |
range |
The range of cells to invalidate.
|
InvalidateRowResize()
Declaration
public virtual void InvalidateRowResize()
MeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
Type |
Name |
Description |
System.Windows.Size |
constraint |
|
Returns
Overrides
ModelInsertColumns(Int32, Int32, GridViewMoveCellsState)
Declaration
protected virtual void ModelInsertColumns(int insertAtColumnIndex, int count, GridViewMoveCellsState moveCellsState)
Parameters
Type |
Name |
Description |
System.Int32 |
insertAtColumnIndex |
|
System.Int32 |
count |
|
GridViewMoveCellsState |
moveCellsState |
|
ModelInsertRows(Int32, Int32, GridViewMoveCellsState)
Declaration
protected virtual void ModelInsertRows(int insertAtRowIndex, int count, GridViewMoveCellsState moveCellsState)
Parameters
ModelRemoveColumns(Int32, Int32, GridViewMoveCellsState)
Declaration
protected virtual void ModelRemoveColumns(int removeAtColumnIndex, int count, GridViewMoveCellsState moveCellsState)
Parameters
Type |
Name |
Description |
System.Int32 |
removeAtColumnIndex |
|
System.Int32 |
count |
|
GridViewMoveCellsState |
moveCellsState |
|
ModelRemoveRows(Int32, Int32, GridViewMoveCellsState)
Declaration
protected virtual void ModelRemoveRows(int removeAtRowIndex, int count, GridViewMoveCellsState moveCellsState)
Parameters
Moves the current cell in the direction indicated by the arrow keys.
Declaration
public virtual bool MoveCurrentCellWithArrowKey(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.KeyEventArgs |
e |
The System.Windows.Input.KeyEventArgs object.
|
Returns
Type |
Description |
System.Boolean |
True if the operation was successful; False otherwise.
|
OnArrangeContent(Size)
Declaration
protected override void OnArrangeContent(Size arrangeSize)
Parameters
Type |
Name |
Description |
System.Windows.Size |
arrangeSize |
|
Overrides
OnArrangeOverride(Size, ref Boolean)
Declaration
protected override Size OnArrangeOverride(Size arrangeSize, ref bool isArrangeDirty)
Parameters
Type |
Name |
Description |
System.Windows.Size |
arrangeSize |
|
System.Boolean |
isArrangeDirty |
|
Returns
Overrides
OnBaseStylesMapChanged(EventArgs)
Declaration
protected virtual void OnBaseStylesMapChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
OnCancelMode(SyncfusionRoutedEventArgs)
Declaration
protected virtual void OnCancelMode(SyncfusionRoutedEventArgs e)
Parameters
Declaration
protected virtual void OnCanExecuteCopy(CanExecuteRoutedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Input.CanExecuteRoutedEventArgs |
args |
|
Declaration
protected virtual void OnCanExecuteCut(CanExecuteRoutedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Input.CanExecuteRoutedEventArgs |
args |
|
Declaration
protected virtual void OnCanExecutePaste(CanExecuteRoutedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Input.CanExecuteRoutedEventArgs |
args |
|
Declaration
protected static void OnCanExecuteRedo(object sender, CanExecuteRoutedEventArgs args)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.Windows.Input.CanExecuteRoutedEventArgs |
args |
|
Declaration
protected virtual void OnCanExecuteRedo(CanExecuteRoutedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Input.CanExecuteRoutedEventArgs |
args |
|
Declaration
protected static void OnCanExecuteUndo(object sender, CanExecuteRoutedEventArgs args)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.Windows.Input.CanExecuteRoutedEventArgs |
args |
|
Declaration
protected virtual void OnCanExecuteUndo(CanExecuteRoutedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Input.CanExecuteRoutedEventArgs |
args |
|
Declaration
protected virtual void OnCellButtonClick(GridCellButtonClickEventArgs e)
Parameters
OnCellCancelMode(SyncfusionRoutedEventArgs)
Declaration
protected virtual void OnCellCancelMode(SyncfusionRoutedEventArgs args)
Parameters
OnCellClick(GridCellClickEventArgs)
Declaration
protected virtual void OnCellClick(GridCellClickEventArgs e)
Parameters
OnCellModelsChanged(CollectionChangeEventArgs)
Declaration
protected virtual void OnCellModelsChanged(CollectionChangeEventArgs e)
Parameters
Type |
Name |
Description |
System.ComponentModel.CollectionChangeEventArgs |
e |
|
OnCellMouseDown(GridCellMouseControllerEventArgs)
Declaration
protected virtual void OnCellMouseDown(GridCellMouseControllerEventArgs args)
Parameters
OnCellMouseHover(GridCellMouseControllerEventArgs)
Declaration
protected virtual void OnCellMouseHover(GridCellMouseControllerEventArgs args)
Parameters
OnCellMouseHoverEnter(GridCellMouseEventArgs)
Declaration
protected virtual void OnCellMouseHoverEnter(GridCellMouseEventArgs args)
Parameters
OnCellMouseHoverLeave(GridCellMouseEventArgs)
Declaration
protected virtual void OnCellMouseHoverLeave(GridCellMouseEventArgs args)
Parameters
OnCellMouseMove(GridCellMouseControllerEventArgs)
Declaration
protected virtual void OnCellMouseMove(GridCellMouseControllerEventArgs args)
Parameters
OnCellMouseUp(GridCellMouseControllerEventArgs)
Declaration
protected virtual void OnCellMouseUp(GridCellMouseControllerEventArgs args)
Parameters
OnCellRestoreMode(SyncfusionRoutedEventArgs)
Declaration
protected virtual void OnCellRestoreMode(SyncfusionRoutedEventArgs args)
Parameters
OnColumnsInserted(GridRangeInsertedEventArgs)
Declaration
protected virtual void OnColumnsInserted(GridRangeInsertedEventArgs e)
Parameters
OnColumnsMoved(GridRangeMovedEventArgs)
Declaration
protected virtual void OnColumnsMoved(GridRangeMovedEventArgs e)
Parameters
OnColumnsRemoved(GridRangeRemovedEventArgs)
Declaration
protected virtual void OnColumnsRemoved(GridRangeRemovedEventArgs e)
Parameters
OnCommitCellInfo(GridCommitCellInfoEventArgs)
Declaration
protected virtual void OnCommitCellInfo(GridCommitCellInfoEventArgs e)
Parameters
OnCommittedCellInfo(GridCommitCellInfoEventArgs)
Declaration
protected virtual void OnCommittedCellInfo(GridCommitCellInfoEventArgs e)
Parameters
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type |
System.Windows.Automation.Peers.AutomationPeer |
OnCurrentCellAcceptedChanges(SyncfusionRoutedEventArgs)
Declaration
protected virtual void OnCurrentCellAcceptedChanges(SyncfusionRoutedEventArgs e)
Parameters
OnCurrentCellActivateFailed(GridCurrentCellActivateFailedEventArgs)
Declaration
protected virtual void OnCurrentCellActivateFailed(GridCurrentCellActivateFailedEventArgs e)
Parameters
OnCurrentCellActivating(GridCurrentCellActivatingEventArgs)
Declaration
protected virtual void OnCurrentCellActivating(GridCurrentCellActivatingEventArgs e)
Parameters
OnCurrentCellChanged(SyncfusionRoutedEventArgs)
Declaration
protected virtual void OnCurrentCellChanged(SyncfusionRoutedEventArgs e)
Parameters
OnCurrentCellChanging(SyncfusionCancelRoutedEventArgs)
Declaration
protected virtual void OnCurrentCellChanging(SyncfusionCancelRoutedEventArgs e)
Parameters
OnCurrentCellClosedDropDown(SyncfusionRoutedEventArgs)
Declaration
protected virtual void OnCurrentCellClosedDropDown(SyncfusionRoutedEventArgs e)
Parameters
OnCurrentCellConfirmChangesFailed(SyncfusionRoutedEventArgs)
Declaration
protected virtual void OnCurrentCellConfirmChangesFailed(SyncfusionRoutedEventArgs e)
Parameters
OnCurrentCellDeactivated(GridCurrentCellDeactivatedEventArgs)
Declaration
protected virtual void OnCurrentCellDeactivated(GridCurrentCellDeactivatedEventArgs e)
Parameters
OnCurrentCellDeactivateFailed(SyncfusionRoutedEventArgs)
Declaration
protected virtual void OnCurrentCellDeactivateFailed(SyncfusionRoutedEventArgs e)
Parameters
OnCurrentCellDeactivating(SyncfusionCancelRoutedEventArgs)
Declaration
protected virtual void OnCurrentCellDeactivating(SyncfusionCancelRoutedEventArgs e)
Parameters
OnCurrentCellEditingComplete(SyncfusionRoutedEventArgs)
Declaration
protected virtual void OnCurrentCellEditingComplete(SyncfusionRoutedEventArgs e)
Parameters
OnCurrentCellKeyDown(GridCellKeyEventArgs)
Declaration
protected virtual bool OnCurrentCellKeyDown(GridCellKeyEventArgs e)
Parameters
Returns
OnCurrentCellMoved(GridCurrentCellMovedEventArgs)
Declaration
protected virtual void OnCurrentCellMoved(GridCurrentCellMovedEventArgs e)
Parameters
OnCurrentCellMoveFailed(GridCurrentCellMoveFailedEventArgs)
Declaration
protected virtual void OnCurrentCellMoveFailed(GridCurrentCellMoveFailedEventArgs e)
Parameters
OnCurrentCellMoving(GridCurrentCellMovingEventArgs)
Declaration
protected virtual void OnCurrentCellMoving(GridCurrentCellMovingEventArgs e)
Parameters
OnCurrentCellPreviewKeyDown(GridCellKeyEventArgs)
Declaration
protected virtual bool OnCurrentCellPreviewKeyDown(GridCellKeyEventArgs e)
Parameters
Returns
OnCurrentCellRejectedChanges(SyncfusionRoutedEventArgs)
Declaration
protected virtual void OnCurrentCellRejectedChanges(SyncfusionRoutedEventArgs e)
Parameters
OnCurrentCellShowedDropDown(SyncfusionRoutedEventArgs)
Occurs after the drop-down part has been dropped-down and made visible.
Declaration
protected virtual void OnCurrentCellShowedDropDown(SyncfusionRoutedEventArgs e)
Parameters
OnCurrentCellShowingDropDown(GridCurrentCellShowingDropDownEventArgs)
Declaration
protected virtual void OnCurrentCellShowingDropDown(GridCurrentCellShowingDropDownEventArgs e)
Parameters
OnCurrentCellStartEditing(SyncfusionCancelRoutedEventArgs)
Declaration
protected virtual void OnCurrentCellStartEditing(SyncfusionCancelRoutedEventArgs e)
Parameters
OnCurrentCellValidated(SyncfusionRoutedEventArgs)
Declaration
protected virtual void OnCurrentCellValidated(SyncfusionRoutedEventArgs e)
Parameters
OnCurrentCellValidating(CurrentCellValidatingEventArgs)
Declaration
protected virtual void OnCurrentCellValidating(CurrentCellValidatingEventArgs e)
Parameters
OnDragEnter(DragEventArgs)
Declaration
protected override void OnDragEnter(DragEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.DragEventArgs |
e |
|
OnDragLeave(DragEventArgs)
Declaration
protected override void OnDragLeave(DragEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.DragEventArgs |
e |
|
OnDragOver(DragEventArgs)
Declaration
protected override void OnDragOver(DragEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.DragEventArgs |
e |
|
OnDrop(DragEventArgs)
Declaration
protected override void OnDrop(DragEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.DragEventArgs |
e |
|
Overrides
OnDropDownSelectionChanged(GridCellComboValueChangedEventArgs)
Declaration
protected virtual void OnDropDownSelectionChanged(GridCellComboValueChangedEventArgs args)
Parameters
Declaration
protected virtual void OnExecutedCopy(ExecutedRoutedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Input.ExecutedRoutedEventArgs |
args |
|
Declaration
protected virtual void OnExecutedCut(ExecutedRoutedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Input.ExecutedRoutedEventArgs |
args |
|
Declaration
protected virtual void OnExecutedPaste(ExecutedRoutedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Input.ExecutedRoutedEventArgs |
args |
|
Declaration
protected virtual void OnExecuteRedo(ExecutedRoutedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Input.ExecutedRoutedEventArgs |
args |
|
Declaration
protected virtual void OnExecuteUndo(ExecutedRoutedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Input.ExecutedRoutedEventArgs |
args |
|
OnGridCellCursor(GridCellCursorEventArgs)
Declaration
protected virtual void OnGridCellCursor(GridCellCursorEventArgs args)
Parameters
OnGridCellRenderEvent(GridCellRenderEventArgs)
Declaration
protected virtual void OnGridCellRenderEvent(GridCellRenderEventArgs args)
Parameters
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.KeyEventArgs |
e |
|
Overrides
OnModelCreated()
Declaration
protected virtual GridModel OnModelCreated()
Returns
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.MouseEventArgs |
e |
|
Overrides
OnMoveCurrentCellDirection(GridMoveCurrentCellDirectionEventArgs)
Declaration
protected virtual void OnMoveCurrentCellDirection(GridMoveCurrentCellDirectionEventArgs e)
Parameters
OnParseCommonFormats(GridCellTextEventArgs)
Declaration
protected virtual void OnParseCommonFormats(GridCellTextEventArgs e)
Parameters
OnPrepareRenderCell(GridPrepareRenderCellEventArgs)
Declaration
protected virtual void OnPrepareRenderCell(GridPrepareRenderCellEventArgs e)
Parameters
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.KeyEventArgs |
e |
|
Overrides
Declaration
protected override void OnPreviewMouseDown(MouseButtonEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.MouseButtonEventArgs |
e |
|
Overrides
Implements handling for the PreviewMouseMove�event. When
no mouse button is pressed and the mouse is over a cell it calls .
Declaration
protected override void OnPreviewMouseMove(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.MouseEventArgs |
e |
The System.Windows.Input.MouseEventArgs that contains the event data.
|
Overrides
OnPreviewTextInput(TextCompositionEventArgs)
Declaration
protected override void OnPreviewTextInput(TextCompositionEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.TextCompositionEventArgs |
e |
|
OnQueryBaseStyles(GridQueryBaseStylesEventArgs)
Declaration
protected virtual void OnQueryBaseStyles(GridQueryBaseStylesEventArgs e)
Parameters
OnQueryCanDragRange(GridQueryCanDragRangeEventArgs)
Declaration
protected virtual void OnQueryCanDragRange(GridQueryCanDragRangeEventArgs e)
Parameters
OnQueryCellFormattedText(GridCellTextEventArgs)
Declaration
protected virtual void OnQueryCellFormattedText(GridCellTextEventArgs e)
Parameters
OnQueryCellInfo(GridQueryCellInfoEventArgs)
Declaration
protected virtual void OnQueryCellInfo(GridQueryCellInfoEventArgs e)
Parameters
OnQueryCellModel(GridQueryCellModelEventArgs)
Declaration
protected virtual void OnQueryCellModel(GridQueryCellModelEventArgs e)
Parameters
OnQueryCellSpanBackgrounds(GridQueryCellSpanBackgroundsEventArgs)
Declaration
protected virtual void OnQueryCellSpanBackgrounds(GridQueryCellSpanBackgroundsEventArgs e)
Parameters
OnQueryCellText(GridCellTextEventArgs)
Declaration
protected virtual void OnQueryCellText(GridCellTextEventArgs e)
Parameters
OnQueryCoveredRange(GridQueryCoveredRangeEventArgs)
Declaration
protected virtual void OnQueryCoveredRange(GridQueryCoveredRangeEventArgs e)
Parameters
OnQueryNextCurrentCellPosition(GridQueryNextCurrentCellPositionEventArgs)
Declaration
protected virtual void OnQueryNextCurrentCellPosition(GridQueryNextCurrentCellPositionEventArgs e)
Parameters
OnRaiseQueryAllowDragColumn(GridQueryDragColumnHeaderEventArgs)
Declaration
protected virtual void OnRaiseQueryAllowDragColumn(GridQueryDragColumnHeaderEventArgs ae)
Parameters
OnRender(DrawingContext)
Declaration
protected override void OnRender(DrawingContext dc)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dc |
|
Overrides
OnRenderCell(DrawingContext, RenderCellArgs)
Declaration
protected override void OnRenderCell(DrawingContext dc, RenderCellArgs rca)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dc |
|
RenderCellArgs |
rca |
|
Overrides
OnRenderHiddenColBorder(DrawingContext, RenderCellArgs, Boolean)
Declaration
protected virtual void OnRenderHiddenColBorder(DrawingContext dc, RenderCellArgs rca, bool preceding)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dc |
|
RenderCellArgs |
rca |
|
System.Boolean |
preceding |
|
OnRenderHiddenRowBorder(DrawingContext, RenderCellArgs, Boolean)
Declaration
protected virtual void OnRenderHiddenRowBorder(DrawingContext dc, RenderCellArgs rca, bool preceding)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dc |
|
RenderCellArgs |
rca |
|
System.Boolean |
preceding |
|
OnRenderSelectionBorder(DrawingContext, Rect, CellBorderSide, Pen)
Declaration
protected virtual void OnRenderSelectionBorder(DrawingContext dc, Rect cellRect, CellBorderSide borderSide, Pen pen)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dc |
|
System.Windows.Rect |
cellRect |
|
CellBorderSide |
borderSide |
|
System.Windows.Media.Pen |
pen |
|
OnResizingColumns(GridResizingColumnsEventArgs)
Declaration
protected virtual void OnResizingColumns(GridResizingColumnsEventArgs args)
Parameters
OnResizingRows(GridResizingRowsEventArgs)
Declaration
protected virtual void OnResizingRows(GridResizingRowsEventArgs args)
Parameters
OnRowsInserted(GridRangeInsertedEventArgs)
Declaration
protected virtual void OnRowsInserted(GridRangeInsertedEventArgs e)
Parameters
OnRowsMoved(GridRangeMovedEventArgs)
Declaration
protected virtual void OnRowsMoved(GridRangeMovedEventArgs e)
Parameters
OnRowsRemoved(GridRangeRemovedEventArgs)
Declaration
protected virtual void OnRowsRemoved(GridRangeRemovedEventArgs e)
Parameters
OnSaveCellFormattedText(GridCellTextEventArgs)
Declaration
protected virtual void OnSaveCellFormattedText(GridCellTextEventArgs e)
Parameters
OnSaveCellText(GridCellTextEventArgs)
Declaration
protected virtual void OnSaveCellText(GridCellTextEventArgs e)
Parameters
OnSelectionChanged(GridSelectionChangedEventArgs)
Declaration
protected virtual void OnSelectionChanged(GridSelectionChangedEventArgs e)
Parameters
OnSelectionChanging(GridSelectionChangingEventArgs)
Declaration
protected virtual void OnSelectionChanging(GridSelectionChangingEventArgs e)
Parameters
OnUnloaded(RoutedEventArgs)
Declaration
protected override void OnUnloaded(RoutedEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.RoutedEventArgs |
e |
|
Overrides
Declaration
protected virtual void OnWrapCellNextControlInForm(GridWrapCellNextControlInFormEventArgs e)
Parameters
RaiseCellCommentOpening(RowColumnIndex, ContentControl, String)
Declaration
public void RaiseCellCommentOpening(RowColumnIndex cell, ContentControl popup, string corner)
Parameters
Type |
Name |
Description |
RowColumnIndex |
cell |
|
System.Windows.Controls.ContentControl |
popup |
|
System.String |
corner |
|
RaiseCellToolTipOpening(RowColumnIndex, ContentControl)
Declaration
public void RaiseCellToolTipOpening(RowColumnIndex cell, ContentControl popup)
Parameters
Type |
Name |
Description |
RowColumnIndex |
cell |
|
System.Windows.Controls.ContentControl |
popup |
|
RaiseCurrenctCellLoaded(RowColumnIndex, UIElement)
Declaration
public void RaiseCurrenctCellLoaded(RowColumnIndex cell, UIElement element)
Parameters
Type |
Name |
Description |
RowColumnIndex |
cell |
|
System.Windows.UIElement |
element |
|
RaiseGridDataQueryAllowDragColumn(Int32, Int32, GridQueryDragColumnHeaderReason, GridQueryDragColumnHeaderAction)
Declaration
public virtual GridDataQueryDragColumnHeaderEventArgs RaiseGridDataQueryAllowDragColumn(int colIndex, int insertBeforeColumn, GridQueryDragColumnHeaderReason reason, GridQueryDragColumnHeaderAction tag)
Parameters
Returns
RaiseQueryAllowDragColumn(Int32, Int32, GridQueryDragColumnHeaderReason)
Declaration
public virtual bool RaiseQueryAllowDragColumn(int colIndex, int insertBeforeColumn, GridQueryDragColumnHeaderReason reason)
Parameters
Returns
RaiseQueryCanOleDragRange(GridQueryCanDragRangeEventArgs)
Declaration
public void RaiseQueryCanOleDragRange(GridQueryCanDragRangeEventArgs e)
Parameters
Declaration
public void RaiseWrapCellNextControlInForm(GridWrapCellNextControlInFormEventArgs e)
Parameters
RangeToClippedVisibleRect(RowColumnIndex)
Returns the visible client rectangle for the given cell range.
Declaration
public Rect RangeToClippedVisibleRect(RowColumnIndex cellRowColumnIndex)
Parameters
Returns
Type |
Description |
System.Windows.Rect |
Visible client rectangle for the given cell range.
|
RangeToClippedVisibleRect(RowColumnIndex, Boolean)
Returns the visible client rectangle for the given cell range.
Declaration
public Rect RangeToClippedVisibleRect(RowColumnIndex cellRowColumnIndex, bool expandCoveredCell)
Parameters
Type |
Name |
Description |
RowColumnIndex |
cellRowColumnIndex |
Row and column indices as RowColumnIndex.
|
System.Boolean |
expandCoveredCell |
When true, any covered cell will be expanded before calculating the visible rectangle.
|
Returns
Type |
Description |
System.Windows.Rect |
Visible client rectangle for the given cell range.
|
RangeToClippedVisibleRect(GridRangeInfo)
Returns the visible client rectangle for the given cell range.
Declaration
public Rect RangeToClippedVisibleRect(GridRangeInfo range)
Parameters
Returns
Type |
Description |
System.Windows.Rect |
Visible client rectangle for the given cell range.
|
Declaration
public Rect RangeToRect(ScrollAxisRegion rowRegion, ScrollAxisRegion columnRegion, GridRangeInfo range, bool allowEstimatesForOutOfViewRows, bool allowEstimatesForOutOfViewColumns)
Parameters
Type |
Name |
Description |
ScrollAxisRegion |
rowRegion |
Scroll axis region for row.
|
ScrollAxisRegion |
columnRegion |
Scroll axis region for column.
|
GridRangeInfo |
range |
Cell range.
|
System.Boolean |
allowEstimatesForOutOfViewRows |
If set to true, allows estimate for out of view rows.
|
System.Boolean |
allowEstimatesForOutOfViewColumns |
If set to true, allows estimate for out of view columns.
|
Returns
Type |
Description |
System.Windows.Rect |
Visible rectangle for the given range.
|
RegisterDataObjectConsumer(IGridDataObjectConsumer)
Declaration
public void RegisterDataObjectConsumer(IGridDataObjectConsumer consumer)
Parameters
remove_CancelMode(GridRoutedEventHandler)
Declaration
public void remove_CancelMode(GridRoutedEventHandler value)
Parameters
Declaration
public void remove_CellButtonClick(GridCellButtonClickEventHandler value)
Parameters
remove_CellCancelMode(GridRoutedEventHandler)
Declaration
public void remove_CellCancelMode(GridRoutedEventHandler value)
Parameters
remove_CellClick(GridCellClickEventHandler)
Declaration
public void remove_CellClick(GridCellClickEventHandler value)
Parameters
Declaration
public void remove_CellCommentOpening(GridControlBase.GridCellCommentOpeningEvent value)
Parameters
remove_CellCursor(GridCellCursorEventHandler)
Declaration
public void remove_CellCursor(GridCellCursorEventHandler value)
Parameters
remove_CellMouseDown(GridCellMouseControllerEventHandler)
Declaration
public void remove_CellMouseDown(GridCellMouseControllerEventHandler value)
Parameters
remove_CellMouseHover(GridCellMouseControllerEventHandler)
Declaration
public void remove_CellMouseHover(GridCellMouseControllerEventHandler value)
Parameters
remove_CellMouseHoverEnter(GridCellMouseEventHandler)
Declaration
public void remove_CellMouseHoverEnter(GridCellMouseEventHandler value)
Parameters
remove_CellMouseHoverLeave(GridCellMouseEventHandler)
Declaration
public void remove_CellMouseHoverLeave(GridCellMouseEventHandler value)
Parameters
remove_CellMouseMove(GridCellMouseControllerEventHandler)
Declaration
public void remove_CellMouseMove(GridCellMouseControllerEventHandler value)
Parameters
remove_CellMouseUp(GridCellMouseControllerEventHandler)
Declaration
public void remove_CellMouseUp(GridCellMouseControllerEventHandler value)
Parameters
remove_CellRendered(GridCellRenderEventHandler)
Declaration
public void remove_CellRendered(GridCellRenderEventHandler value)
Parameters
remove_CellRestoreMode(GridRoutedEventHandler)
Declaration
public void remove_CellRestoreMode(GridRoutedEventHandler value)
Parameters
Declaration
public void remove_CellToolTipOpening(GridControlBase.GridCellToolTipOpeningEvent value)
Parameters
remove_ColumnsInserted(GridRangeInsertedEventHandler)
Declaration
public void remove_ColumnsInserted(GridRangeInsertedEventHandler value)
Parameters
remove_ColumnsMoved(GridRangeMovedEventHandler)
Declaration
public void remove_ColumnsMoved(GridRangeMovedEventHandler value)
Parameters
remove_ColumnsRemoved(GridRangeRemovedEventHandler)
Declaration
public void remove_ColumnsRemoved(GridRangeRemovedEventHandler value)
Parameters
remove_CommitCellInfo(GridCommitCellInfoEventHandler)
Declaration
public void remove_CommitCellInfo(GridCommitCellInfoEventHandler value)
Parameters
remove_CommittedCellInfo(GridCommitCellInfoEventHandler)
Declaration
public void remove_CommittedCellInfo(GridCommitCellInfoEventHandler value)
Parameters
remove_CurrentCellAcceptedChanges(GridRoutedEventHandler)
Declaration
public void remove_CurrentCellAcceptedChanges(GridRoutedEventHandler value)
Parameters
remove_CurrentCellActivated(GridRoutedEventHandler)
Declaration
public void remove_CurrentCellActivated(GridRoutedEventHandler value)
Parameters
remove_CurrentCellActivateFailed(GridCurrentCellActivateFailedEventHandler)
Declaration
public void remove_CurrentCellActivateFailed(GridCurrentCellActivateFailedEventHandler value)
Parameters
remove_CurrentCellActivating(GridCurrentCellActivatingEventHandler)
Declaration
public void remove_CurrentCellActivating(GridCurrentCellActivatingEventHandler value)
Parameters
remove_CurrentCellChanged(GridRoutedEventHandler)
Declaration
public void remove_CurrentCellChanged(GridRoutedEventHandler value)
Parameters
remove_CurrentCellChanging(GridCancelRoutedEventHandler)
Declaration
public void remove_CurrentCellChanging(GridCancelRoutedEventHandler value)
Parameters
remove_CurrentCellClosedDropDown(GridRoutedEventHandler)
Declaration
public void remove_CurrentCellClosedDropDown(GridRoutedEventHandler value)
Parameters
remove_CurrentCellConfirmChangesFailed(GridRoutedEventHandler)
Declaration
public void remove_CurrentCellConfirmChangesFailed(GridRoutedEventHandler value)
Parameters
remove_CurrentCellDeactivated(GridCurrentCellDeactivatedEventHandler)
Declaration
public void remove_CurrentCellDeactivated(GridCurrentCellDeactivatedEventHandler value)
Parameters
remove_CurrentCellDeactivateFailed(GridRoutedEventHandler)
Declaration
public void remove_CurrentCellDeactivateFailed(GridRoutedEventHandler value)
Parameters
remove_CurrentCellDeactivating(GridCancelRoutedEventHandler)
Declaration
public void remove_CurrentCellDeactivating(GridCancelRoutedEventHandler value)
Parameters
remove_CurrentCellEditingComplete(GridRoutedEventHandler)
Declaration
public void remove_CurrentCellEditingComplete(GridRoutedEventHandler value)
Parameters
remove_CurrentCellKeyDown(GridCellKeyEventHandler)
Declaration
public void remove_CurrentCellKeyDown(GridCellKeyEventHandler value)
Parameters
remove_CurrentCellLoaded(GridControlBase.GridCurrentCellLoadedEvent)
Declaration
public void remove_CurrentCellLoaded(GridControlBase.GridCurrentCellLoadedEvent value)
Parameters
remove_CurrentCellMoved(GridCurrentCellMovedEventHandler)
Declaration
public void remove_CurrentCellMoved(GridCurrentCellMovedEventHandler value)
Parameters
remove_CurrentCellMoveFailed(GridCurrentCellMoveFailedEventHandler)
Declaration
public void remove_CurrentCellMoveFailed(GridCurrentCellMoveFailedEventHandler value)
Parameters
remove_CurrentCellMoving(GridCurrentCellMovingEventHandler)
Declaration
public void remove_CurrentCellMoving(GridCurrentCellMovingEventHandler value)
Parameters
remove_CurrentCellPreviewKeyDown(GridCellKeyEventHandler)
Declaration
public void remove_CurrentCellPreviewKeyDown(GridCellKeyEventHandler value)
Parameters
remove_CurrentCellRejectedChanges(GridRoutedEventHandler)
Declaration
public void remove_CurrentCellRejectedChanges(GridRoutedEventHandler value)
Parameters
remove_CurrentCellShowedDropDown(GridRoutedEventHandler)
Declaration
public void remove_CurrentCellShowedDropDown(GridRoutedEventHandler value)
Parameters
remove_CurrentCellShowingDropDown(GridCurrentCellShowingDropDownEventHandler)
Declaration
public void remove_CurrentCellShowingDropDown(GridCurrentCellShowingDropDownEventHandler value)
Parameters
remove_CurrentCellStartEditing(GridCancelRoutedEventHandler)
Declaration
public void remove_CurrentCellStartEditing(GridCancelRoutedEventHandler value)
Parameters
remove_CurrentCellValidated(GridRoutedEventHandler)
Declaration
public void remove_CurrentCellValidated(GridRoutedEventHandler value)
Parameters
remove_CurrentCellValidating(CurrentCellValidatingEventHandler)
Declaration
public void remove_CurrentCellValidating(CurrentCellValidatingEventHandler value)
Parameters
remove_DropDownSelectionChanged(GridCellComboValueChangedEventHandler)
Declaration
public void remove_DropDownSelectionChanged(GridCellComboValueChangedEventHandler value)
Parameters
remove_MoveCurrentCellDirection(GridMoveCurrentCellDirectionEventHandler)
Declaration
public void remove_MoveCurrentCellDirection(GridMoveCurrentCellDirectionEventHandler value)
Parameters
remove_ParseCommonFormats(GridCellTextEventHandler)
Declaration
public void remove_ParseCommonFormats(GridCellTextEventHandler value)
Parameters
remove_PrepareRenderCell(GridPrepareRenderCellEventHandler)
Declaration
public void remove_PrepareRenderCell(GridPrepareRenderCellEventHandler value)
Parameters
remove_QueryAllowDragColumn(GridQueryDragColumnHeaderEventHandler)
Declaration
public void remove_QueryAllowDragColumn(GridQueryDragColumnHeaderEventHandler value)
Parameters
remove_QueryBaseStyles(GridQueryBaseStylesEventHandler)
Declaration
public void remove_QueryBaseStyles(GridQueryBaseStylesEventHandler value)
Parameters
remove_QueryCanDragRange(GridExcelLikeDragRangeEventHandler)
Declaration
public void remove_QueryCanDragRange(GridExcelLikeDragRangeEventHandler value)
Parameters
remove_QueryCellFormattedText(GridCellTextEventHandler)
Declaration
public void remove_QueryCellFormattedText(GridCellTextEventHandler value)
Parameters
remove_QueryCellInfo(GridQueryCellInfoEventHandler)
Declaration
public void remove_QueryCellInfo(GridQueryCellInfoEventHandler value)
Parameters
remove_QueryCellModel(GridQueryCellModelEventHandler)
Declaration
public void remove_QueryCellModel(GridQueryCellModelEventHandler value)
Parameters
remove_QueryCellSpanBackgrounds(GridQueryCellSpanBackgroundsEventHandler)
Declaration
public void remove_QueryCellSpanBackgrounds(GridQueryCellSpanBackgroundsEventHandler value)
Parameters
remove_QueryCellText(GridCellTextEventHandler)
Declaration
public void remove_QueryCellText(GridCellTextEventHandler value)
Parameters
remove_QueryCoveredRange(GridQueryCoveredRangeEventHandler)
Declaration
public void remove_QueryCoveredRange(GridQueryCoveredRangeEventHandler value)
Parameters
remove_QueryNextCurrentCellPosition(GridQueryNextCurrentCellPositionEventHandler)
Declaration
public void remove_QueryNextCurrentCellPosition(GridQueryNextCurrentCellPositionEventHandler value)
Parameters
remove_ResizingColumns(GridResizingColumnsEventHandler)
Declaration
public void remove_ResizingColumns(GridResizingColumnsEventHandler value)
Parameters
remove_ResizingRows(GridResizingRowsEventHandler)
Declaration
public void remove_ResizingRows(GridResizingRowsEventHandler value)
Parameters
remove_RowsInserted(GridRangeInsertedEventHandler)
Declaration
public void remove_RowsInserted(GridRangeInsertedEventHandler value)
Parameters
remove_RowsMoved(GridRangeMovedEventHandler)
Declaration
public void remove_RowsMoved(GridRangeMovedEventHandler value)
Parameters
remove_RowsRemoved(GridRangeRemovedEventHandler)
Declaration
public void remove_RowsRemoved(GridRangeRemovedEventHandler value)
Parameters
remove_SaveCellFormattedText(GridCellTextEventHandler)
Declaration
public void remove_SaveCellFormattedText(GridCellTextEventHandler value)
Parameters
remove_SaveCellText(GridCellTextEventHandler)
Declaration
public void remove_SaveCellText(GridCellTextEventHandler value)
Parameters
remove_SelectionChanged(GridSelectionChangedEventHandler)
Declaration
public void remove_SelectionChanged(GridSelectionChangedEventHandler value)
Parameters
remove_SelectionChanging(GridSelectionChangingEventHandler)
Declaration
public void remove_SelectionChanging(GridSelectionChangingEventHandler value)
Parameters
Declaration
public void remove_WrapCellNextControlInForm(GridWrapCellNextControlInFormEventHandler value)
Parameters
RenderActiveRangeBorder()
Declaration
protected virtual void RenderActiveRangeBorder()
RenderCellBorders(DrawingContext)
Declaration
protected override void RenderCellBorders(DrawingContext dc)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dc |
|
Overrides
Declaration
protected virtual void RenderCellComment(DrawingContext dc, GridStyleInfo style, Rect cellRect)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dc |
|
GridStyleInfo |
style |
|
System.Windows.Rect |
cellRect |
|
RenderCellErrorInfo(DrawingContext, GridStyleInfo, Rect)
Declaration
protected virtual void RenderCellErrorInfo(DrawingContext dc, GridStyleInfo style, Rect cellRect)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dc |
|
GridStyleInfo |
style |
|
System.Windows.Rect |
cellRect |
|
RenderCellImage(DrawingContext, GridStyleInfo, Rect)
Declaration
protected virtual void RenderCellImage(DrawingContext dc, GridStyleInfo style, Rect cellRect)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dc |
|
GridStyleInfo |
style |
|
System.Windows.Rect |
cellRect |
|
RenderCells(DrawingContext)
Declaration
protected override void RenderCells(DrawingContext dc)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dc |
|
Overrides
RenderCurrentCellBorder()
Render current cell border into the dvCurrentCellBorder DrawingVisual of the ScrollControl.ForegroundFrame. This will not trigger any InvalidateVisual or InvalidateArrange calls.
Declaration
protected virtual void RenderCurrentCellBorder()
RenderCurrentCellBorder(DrawingContext, Rect)
Declaration
protected virtual void RenderCurrentCellBorder(DrawingContext dccBorder, Rect r)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dccBorder |
|
System.Windows.Rect |
r |
|
RenderHiddenCellBorder()
Declaration
protected virtual void RenderHiddenCellBorder()
RenderRow(DrawingContext, VisibleLineInfo, Point)
Declaration
protected override void RenderRow(DrawingContext dc, VisibleLineInfo visibleRow, Point corner)
Parameters
Type |
Name |
Description |
System.Windows.Media.DrawingContext |
dc |
The drawing context.
|
VisibleLineInfo |
visibleRow |
The visible row.
|
System.Windows.Point |
corner |
The corner which is the point after the last visible row and column
of the body region.
|
Overrides
RenderSelectedCells()
Declaration
protected virtual void RenderSelectedCells()
ResetRowResize()
Gets called from ResizeRowsMouseController when user ended resizing a row. The method calls ScrollRows.ResetLineResize followed by a call to InvalidateRowResize.
Declaration
public virtual void ResetRowResize()
Resume the formula calculation while rendering the grid
Declaration
public void ResumeFormulaCalculation(GridRangeInfo Range)
Parameters
Brings the given cell into view.
Declaration
public virtual void ScrollInView(RowColumnIndex cellRowColumnIndex)
Parameters
SetAddSkinResourceForDataTemplate(DependencyObject, Boolean)
Sets the AddSkinResourceForDataTemplate property. This dependency property
indicates whether skins have to be added for DataTemplate as MergedDictionaries.
Declaration
public static void SetAddSkinResourceForDataTemplate(DependencyObject d, bool value)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
d |
|
System.Boolean |
value |
|
SetAllowDropDownKeyHandling(DependencyObject, Boolean)
Sets the AllowComboBoxDropDownKeyHandling property. This dependency property
indicates whether ComboBox DropDown should handle up down key.
Declaration
public static void SetAllowDropDownKeyHandling(DependencyObject d, bool value)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
d |
|
System.Boolean |
value |
|
SetAllowSelectionInDataTemplate(DependencyObject, Boolean)
Declaration
public static void SetAllowSelectionInDataTemplate(DependencyObject o, bool value)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
o |
|
System.Boolean |
value |
|
SetAutomationTemplateElement(DependencyObject, Boolean)
Sets the automation template element.
Declaration
public static void SetAutomationTemplateElement(DependencyObject dpo, bool value)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dpo |
The dpo.
|
System.Boolean |
value |
if set to true [value].
|
SetCellRenderer(DependencyObject, IGridCellRenderer)
Sets the attached dependency property value.
Declaration
public static void SetCellRenderer(DependencyObject dpo, IGridCellRenderer value)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dpo |
The instance to be assigned the value of the dependency property.
|
IGridCellRenderer |
value |
The value.
|
SetColumnWidth(Int32, Double)
Sets the width for the given column.
Declaration
public virtual void SetColumnWidth(int columnIndex, double size)
Parameters
Type |
Name |
Description |
System.Int32 |
columnIndex |
The column index.
|
System.Double |
size |
Column Width to be set.
|
SetDelayLoad(DependencyObject, Boolean)
Sets a boolean value if the DependencyObject should be loaded with a delay when it is created. Set this for templated controls.
Declaration
public static void SetDelayLoad(DependencyObject dpo, bool value)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dpo |
|
System.Boolean |
value |
|
SetIgnoreChangedEvent(DependencyObject, Boolean)
Sets the attached dependency property value.
Declaration
public static void SetIgnoreChangedEvent(DependencyObject dpo, bool value)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dpo |
The instance to be assigned the value of the dependency property.
|
System.Boolean |
value |
The value.
|
SetPrintPageSize(Size)
Sets the print page size.
Declaration
public void SetPrintPageSize(Size printSize)
Parameters
Type |
Name |
Description |
System.Windows.Size |
printSize |
Print size.
|
SetRenderStyleInfo(DependencyObject, GridRenderStyleInfo)
Sets the attached dependency property value.
Declaration
public static void SetRenderStyleInfo(DependencyObject dpo, GridRenderStyleInfo value)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dpo |
The instance to be assigned the value of the dependency property.
|
GridRenderStyleInfo |
value |
The value.
|
SetRowHeight(Int32, Double)
Sets the height for the given row.
Declaration
public virtual void SetRowHeight(int rowIndex, double size)
Parameters
Type |
Name |
Description |
System.Int32 |
rowIndex |
The row index.
|
System.Double |
size |
Row Height to be set.
|
SetRowResize(Int32, Double)
Gets called from ResizeRowsMouseController when user resizes a row. The method calls ScrollRows.SetLineResize followed by a call to InvalidateRowResize.
Declaration
public virtual void SetRowResize(int index, double height)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Double |
height |
|
Declaration
protected virtual bool ShouldGraphicCellTryToHandlePreviewKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.KeyEventArgs |
e |
|
Returns
Declaration
protected virtual bool ShouldGridTryToHandlePreviewKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.KeyEventArgs |
e |
|
Returns
ShouldRenderCurrentCellBorder()
Declaration
protected virtual bool ShouldRenderCurrentCellBorder()
Returns
ShouldRenderStyleBackgrounds()
Declaration
protected override bool ShouldRenderStyleBackgrounds()
Returns
Overrides
Suspend formula calculation while rendering the grid
Declaration
public void SuspendFormulaCalculation()
UnloadArrangedCells()
Recycles the UI element objects of the cells.
Declaration
public override void UnloadArrangedCells()
Overrides
UnwireModel()
Declaration
protected virtual void UnwireModel()
WireModel()
Declaration
protected virtual void WireModel()
Events
BaseStylesMapChanged
Occurs when the GridModel.BaseStylesMap is changed.
Declaration
public event EventHandler BaseStylesMapChanged
Event Type
CancelMode
Occurs any current user interaction should be cancelled, e.g. cancel select cells when escape key is pressed.
Declaration
public event GridRoutedEventHandler CancelMode
Event Type
Declaration
public event GridCellButtonClickEventHandler CellButtonClick
Event Type
CellCancelMode
Occurs when your cell renderer has indicated in its OnHitTest override that
it wants to receive mouse events and the mouse operation is canceled.
Declaration
public event GridRoutedEventHandler CellCancelMode
Event Type
CellClick
Occurs when the user clicks inside a cell.
Declaration
public event GridCellClickEventHandler CellClick
Event Type
Declaration
public event GridControlBase.GridCellCommentOpeningEvent CellCommentOpening
Event Type
CellCursor
Grid queries for the cursor to display for a specific cell when the cell indicated
previously with a non-zero hit-test value that it wants the mouse operation
Declaration
public event GridCellCursorEventHandler CellCursor
Event Type
CellModelsChanged
Occurs when the CellModels collection is changed.
Declaration
public event CollectionChangeEventHandler CellModelsChanged
Event Type
Type |
System.ComponentModel.CollectionChangeEventHandler |
CellMouseDown
Occurs when your cell renderer has indicated in its OnHitTest override that
it wants to receive mouse events and the user has pressed a mouse button.
Declaration
public event GridCellMouseControllerEventHandler CellMouseDown
Event Type
CellMouseHover
Occurs when the cell's HitTest method indicated previously with a non-zero hit-test value
that it wants the mouse operation or when the user is hovering the mouse over cells and
the "SelectCells" mouse controller is about to handle the mouse operation.
Declaration
public event GridCellMouseControllerEventHandler CellMouseHover
Event Type
CellMouseHoverEnter
Occurs when the cell's HitTest method indicated previously with a non-zero hit-test value
that it wants the mouse operation or when the user is hovering the mouse over cells
and the "SelectCells" mouse controller is about to handle the mouse operation.
Declaration
public event GridCellMouseEventHandler CellMouseHoverEnter
Event Type
CellMouseHoverLeave
Occurs when the cell's HitTest method indicated previously with a non-zero hit-test value
that it wants the mouse operation or when the user is hovering the mouse over cells and
the "SelectCells" mouse controller is about to handle the mouse operation.
Declaration
public event GridCellMouseEventHandler CellMouseHoverLeave
Event Type
CellMouseMove
Occurs when your cell renderer has indicated in its OnHitTest override that
it wants to receive mouse events and the user has pressed a mouse button
and is moving the mouse pointer.
Declaration
public event GridCellMouseControllerEventHandler CellMouseMove
Event Type
CellMouseUp
Occurs when your cell renderer has indicated in its OnHitTest override that
it wants to receive mouse events and the user has pressed a mouse button
and is releasing the button.
Declaration
public event GridCellMouseControllerEventHandler CellMouseUp
Event Type
CellRendered
Occurs after the grid cells have been rendered.
Declaration
public event GridCellRenderEventHandler CellRendered
Event Type
CellRestoreMode
Occurs after the CellCancelMode event and is used to restore the cell state.
Declaration
public event GridRoutedEventHandler CellRestoreMode
Event Type
Occurs before the opening of Tooltip Popup
Declaration
public event GridControlBase.GridCellToolTipOpeningEvent CellToolTipOpening
Event Type
ColumnsInserted
Declaration
public event GridRangeInsertedEventHandler ColumnsInserted
Event Type
ColumnsMoved
Declaration
public event GridRangeMovedEventHandler ColumnsMoved
Event Type
ColumnsRemoved
Declaration
public event GridRangeRemovedEventHandler ColumnsRemoved
Event Type
CommitCellInfo
Occurs when the model is about to save style information about a specific cell.
Declaration
public event GridCommitCellInfoEventHandler CommitCellInfo
Event Type
CommittedCellInfo
Occurs when the model has saved style information about a specific cell.
Declaration
public event GridCommitCellInfoEventHandler CommittedCellInfo
Event Type
CurrentCellAcceptedChanges
Occurs when the grid accepts changes made to the active current cell.
Declaration
public event GridRoutedEventHandler CurrentCellAcceptedChanges
Event Type
CurrentCellActivated
Occurs after the grid activates the specified cell as current cell.
Declaration
public event GridRoutedEventHandler CurrentCellActivated
Event Type
See Also
CurrentCellActivateFailed
Occurs after the grid fails to activate a specific cell as current cell.
Declaration
public event GridCurrentCellActivateFailedEventHandler CurrentCellActivateFailed
Event Type
See Also
CurrentCellActivating
Occurs before the grid activates the specified cell as current cell.
Declaration
public event GridCurrentCellActivatingEventHandler CurrentCellActivating
Event Type
See Also
CurrentCellChanged
Occurs when the user changes contents of the current cell.
Declaration
public event GridRoutedEventHandler CurrentCellChanged
Event Type
CurrentCellChanging
Occurs when the user wants to modify contents of the current cell.
Declaration
public event GridCancelRoutedEventHandler CurrentCellChanging
Event Type
CurrentCellClosedDropDown
Declaration
public event GridRoutedEventHandler CurrentCellClosedDropDown
Event Type
CurrentCellConfirmChangesFailed
Occurs when the grid could not save changes made to the active current cell.
Declaration
public event GridRoutedEventHandler CurrentCellConfirmChangesFailed
Event Type
CurrentCellDeactivated
Occurs after the grid deactivates current cell.
Declaration
public event GridCurrentCellDeactivatedEventHandler CurrentCellDeactivated
Event Type
CurrentCellDeactivateFailed
Occurs after the grid fails to deactivate the current cell.
Declaration
public event GridRoutedEventHandler CurrentCellDeactivateFailed
Event Type
CurrentCellDeactivating
Occurs before the grid the deactivates the current cell.
Declaration
public event GridCancelRoutedEventHandler CurrentCellDeactivating
Event Type
See Also
CurrentCellEditingComplete
Occurs when the grid completes editing mode for the active current cell.
Declaration
public event GridRoutedEventHandler CurrentCellEditingComplete
Event Type
CurrentCellKeyDown
Occurs during a key press in the current cell.
Declaration
public event GridCellKeyEventHandler CurrentCellKeyDown
Event Type
CurrentCellLoaded
Declaration
public event GridControlBase.GridCurrentCellLoadedEvent CurrentCellLoaded
Event Type
CurrentCellMoved
Occurs when the current cell has been successfully moved to a new position.
Declaration
public event GridCurrentCellMovedEventHandler CurrentCellMoved
Event Type
See Also
CurrentCellMoveFailed
Occurs when the current cell fails to be moved to a new position.
Declaration
public event GridCurrentCellMoveFailedEventHandler CurrentCellMoveFailed
Event Type
See Also
CurrentCellMoving
Occurs when the current cell is about to be moved to a new position.
Declaration
public event GridCurrentCellMovingEventHandler CurrentCellMoving
Event Type
See Also
CurrentCellPreviewKeyDown
Occurs during the PreviewKeyDown event for the current cell.
Declaration
public event GridCellKeyEventHandler CurrentCellPreviewKeyDown
Event Type
CurrentCellRejectedChanges
Occurs when the grid rejects changes made to the active current cell.
Declaration
public event GridRoutedEventHandler CurrentCellRejectedChanges
Event Type
CurrentCellShowedDropDown
Occurs after the drop-down part has been dropped-down and made visible.
Declaration
public event GridRoutedEventHandler CurrentCellShowedDropDown
Event Type
CurrentCellShowingDropDown
Declaration
public event GridCurrentCellShowingDropDownEventHandler CurrentCellShowingDropDown
Event Type
CurrentCellStartEditing
Occurs before the current cell switches into editing mode.
Declaration
public event GridCancelRoutedEventHandler CurrentCellStartEditing
Event Type
CurrentCellValidated
Occurs when the grid has successfully validated the contents of the active current cell.
Declaration
public event GridRoutedEventHandler CurrentCellValidated
Event Type
CurrentCellValidating
Occurs when the grid validates contents of the active current cell.
Declaration
public event CurrentCellValidatingEventHandler CurrentCellValidating
Event Type
DropDownSelectionChanged
Declaration
public event GridCellComboValueChangedEventHandler DropDownSelectionChanged
Event Type
MoveCurrentCellDirection
Occurs when the direction for current cell movement is changed.
Declaration
public event GridMoveCurrentCellDirectionEventHandler MoveCurrentCellDirection
Event Type
Use this event to provide support for parsing the formatted string and convert
it into the the underlying cell's value
considering Format and CellValueType.
This event is raised from GridCellModelBase.ApplyFormattedText after
SaveCellFormattedText was raised. The event is raised only
if the SaveCellFormattedText did not set e.Handled.
Declaration
public event GridCellTextEventHandler ParseCommonFormats
Event Type
PrepareRenderCell
Occurs before a cell gets rendered.
Declaration
public event GridPrepareRenderCellEventHandler PrepareRenderCell
Event Type
QueryAllowDragColumn
Occurs when the user hovers the mouse over the edge of a selected range.
You can determine whether to allow the column drag action.
Declaration
public event GridQueryDragColumnHeaderEventHandler QueryAllowDragColumn
Event Type
QueryBaseStyles
Occurs when the model queries information about base styles at a specific cell.
Declaration
public event GridQueryBaseStylesEventHandler QueryBaseStyles
Event Type
QueryCanDragRange
Declaration
public event GridExcelLikeDragRangeEventHandler QueryCanDragRange
Event Type
QueryCellFormattedText
Occurs each time the FormattedText is called to get the formatted string that represents the underlying cell's value
considering Format.
Declaration
public event GridCellTextEventHandler QueryCellFormattedText
Event Type
QueryCellInfo
Occurs when the model queries for style information about a specific cell.
Declaration
public event GridQueryCellInfoEventHandler QueryCellInfo
Event Type
QueryCellModel
Occurs when querying for a cell type.
Declaration
public event GridQueryCellModelEventHandler QueryCellModel
Event Type
QueryCellSpanBackgrounds
Occurs when the model queries information about a cell spanned range at a specific cell.
Declaration
public event GridQueryCellSpanBackgroundsEventHandler QueryCellSpanBackgrounds
Event Type
QueryCellText
Occurs each time the Text is called to get the raw string that represents the underlying cell's value.
Declaration
public event GridCellTextEventHandler QueryCellText
Event Type
QueryCoveredRange
Occurs when the model queries information about covered cells at a specific cell.
Declaration
public event GridQueryCoveredRangeEventHandler QueryCoveredRange
Event Type
QueryNextCurrentCellPosition
Occurs when the model queries the next position to move the current cell.
Declaration
public event GridQueryNextCurrentCellPositionEventHandler QueryNextCurrentCellPosition
Event Type
ResizingColumns
Occurs when the user is resizing a selected range of columns.
Declaration
public event GridResizingColumnsEventHandler ResizingColumns
Event Type
ResizingRows
Occurs when the user is resizing a selected range of rows.
Declaration
public event GridResizingRowsEventHandler ResizingRows
Event Type
RowsInserted
Declaration
public event GridRangeInsertedEventHandler RowsInserted
Event Type
RowsMoved
Declaration
public event GridRangeMovedEventHandler RowsMoved
Event Type
RowsRemoved
Declaration
public event GridRangeRemovedEventHandler RowsRemoved
Event Type
SaveCellFormattedText
Declaration
public event GridCellTextEventHandler SaveCellFormattedText
Event Type
SaveCellText
Occurs each time the Text is called to set the unformatted string that represents the underlying cell's value.
Declaration
public event GridCellTextEventHandler SaveCellText
Event Type
SelectionChanged
Occurs after the model updates its internal data structures when the model is in the process of selecting
a range of cells.
Declaration
public event GridSelectionChangedEventHandler SelectionChanged
Event Type
SelectionChanging
Occurs before the model updates internal data structures when the model is in the process of selecting
a range of cells.
Declaration
public event GridSelectionChangingEventHandler SelectionChanging
Event Type
Occurs before the grid is about to be left because the user is at the top-left or bottom-right
cell and about to tab out of the grid.
This event is only raised if the NextControlInForm
has been specified for WrapCell.
Declaration
public event GridWrapCellNextControlInFormEventHandler WrapCellNextControlInForm
Event Type
Explicit Interface Implementations
IGridPrintPaginator.GetPrintTotalPageCount(Size)
Declaration
int IGridPrintPaginator.GetPrintTotalPageCount(Size printPageSize)
Parameters
Type |
Name |
Description |
System.Windows.Size |
printPageSize |
|
Returns
IGridPrintPaginator.GetPrintVisualAt(Int32, Size)
Declaration
FrameworkElement IGridPrintPaginator.GetPrintVisualAt(int pageNumber, Size PageSize)
Parameters
Type |
Name |
Description |
System.Int32 |
pageNumber |
|
System.Windows.Size |
PageSize |
|
Returns
Type |
System.Windows.FrameworkElement |
Implements
System.Windows.Controls.Primitives.IScrollInfo
System.IDisposable
Extension Methods