New to Telerik UI for WinForms? Start a free 30-day trial

Dispatches typed notifications by event key and supports suspending delivery globally or for individual keys.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class EventDispatcher

Inheritance: objectEventDispatcher

Constructors

C#
public EventDispatcher()

Fields

Event key raised while an auto-generated column is prepared; handlers can modify or cancel adding the column.

C#
public static readonly object AutoGeneratingColumn

Event key raised before a cell enters edit mode; handlers can cancel the operation.

C#
public static readonly object CellBeginEdit

Event key used to route a cell click to the grid's CellClick event.

C#
public static readonly object CellClick

Event key used to let handlers adjust a cell's value before it is copied to the clipboard.

C#
public static readonly object CellClipboardCopy

Event key used to let handlers adjust a cell's value before pasted content is applied.

C#
public static readonly object CellClipboardPaste

Event key raised after the cell's editor has been initialized and made visible.

C#
public static readonly object CellEditorInitialized

Event key raised when editing of a cell ends.

C#
public static readonly object CellEndEdit

Event key used to route cell mouse-move notifications to the grid.

C#
public static readonly object CellMouseMove

Event key used to raise CellPaint when custom drawing is enabled.

C#
public static readonly object CellPaint

Event key raised after the cell value validation process completes.

C#
public static readonly object CellValidated

Event key raised while a cell value is being validated; handlers can cancel the commit.

C#
public static readonly object CellValidating

Event key used to notify the grid after a cell's value changes.

C#
public static readonly object CellValueChanged

Event key used when an unbound cell requests its value from the grid.

C#
public static readonly object CellValueNeeded

Event key used when an unbound cell sends an updated value to the grid.

C#
public static readonly object CellValuePushed

Event key raised after a hierarchy row's child view changes expansion state.

C#
public static readonly object ChildViewExpanded

Event key raised before a hierarchy row's child view changes expansion state; handlers can cancel the change.

C#
public static readonly object ChildViewExpanding

Event key used to route column-chooser item creation to the grid for customization.

C#
public static readonly object ColumnChooserItemElementCreating
C#
public static readonly object ColumnIndexChanged
C#
public static readonly object ColumnIndexChanging
C#
public static readonly object ColumnPropertyChanged

Event key raised after a column's width changes.

C#
public static readonly object ColumnWidthChanged

Event key raised before a column's width changes; handlers can cancel the change.

C#
public static readonly object ColumnWidthChanging

Event key raised when a command-cell button is activated by mouse or keyboard.

C#
public static readonly object CommandCellClick

Event key raised immediately before the conditional-formatting rule editor is shown.

C#
public static readonly object ConditionalFormattingFormShown

Event key raised before a grid context menu opens; handlers can cancel opening it.

C#
public static readonly object ContextMenuOpening

Event key raised while the grid generates each clipboard format; handlers can cancel adding that format.

C#
public static readonly object Copying

Event key raised when filtering needs a composite filter dialog; handlers can substitute the dialog.

C#
public static readonly object CreateCompositeFilterDialog

Event key raised when the template creates a row; handlers can replace the default row instance.

C#
public static readonly object CreateRowInfo

Event key raised after the current cell changes.

C#
public static readonly object CurrentCellChanged

Event key raised after the current column changes.

C#
public static readonly object CurrentColumnChanged

Event key raised after the current row changes.

C#
public static readonly object CurrentRowChanged

Event key raised before the current row changes; handlers can cancel the change.

C#
public static readonly object CurrentRowChanging

Event key used to route each row through the grid's custom-filtering handler.

C#
public static readonly object CustomFiltering

Event key used to route each row through the grid's custom-grouping handler.

C#
public static readonly object CustomGrouping

Event key used to let handlers compare two rows during custom sorting.

C#
public static readonly object CustomSorting

Event key used to route binding-completion notifications from a bound list source to the grid.

C#
public static readonly object DataBindingComplete

Event key used to route data-error details to the grid.

C#
public static readonly object DataError

Event key raised while a new row is initialized so handlers can provide default cell values.

C#
public static readonly object DefaultValuesNeeded

Event key used to request or customize the editor for the current cell.

C#
public static readonly object EditorRequired

Represent empty event dispatcher

C#
public static readonly EventDispatcher Empty

Event key raised after an expression editor form is created and before it is shown.

C#
public static readonly object ExpressionEditorFormCreated

Event key raised after a filter descriptor collection changes.

C#
public static readonly object FilterChangedEvent

Event key raised before a filter descriptor collection changes; handlers can cancel the change.

C#
public static readonly object FilterChangingEvent

Event key used after filter descriptors are converted to a filter expression string.

C#
public static readonly object FilterExpressionChanged

Event key raised after a column's filter popup is selected and initialized, before it is shown.

C#
public static readonly object FilterPopupInitialized

Event key raised after a column's default filter popup is created, allowing the handler to select a replacement.

C#
public static readonly object FilterPopupRequired

Event key raised after the grid's group descriptor collection changes.

C#
public static readonly object GroupByChanged

Event key raised before the grid's group descriptor collection changes; handlers can cancel the change.

C#
public static readonly object GroupByChanging

Event key raised after a data group's expansion state changes.

C#
public static readonly object GroupExpanded

Event key raised before a data group's expansion state changes; handlers can cancel the change.

C#
public static readonly object GroupExpanding

Event key raised after the user changes a group's sort direction.

C#
public static readonly object GroupSortChanged

Event key raised before the user changes a group's sort direction; handlers can cancel the change.

C#
public static readonly object GroupSortChanging

Event key raised while a group summary is evaluated; handlers can replace its value and format string.

C#
public static readonly object GroupSummaryEvaluate

Event key raised when the checkbox in a header cell changes toggle state.

C#
public static readonly object HeaderCellToggleStateChanged

Event key raised after hyperlink processing, including when processing reports an error.

C#
public static readonly object HyperlinkOpened

Event key raised before a hyperlink is processed; handlers can cancel opening it.

C#
public static readonly object HyperlinkOpening
C#
public static readonly object InvalidateRow
C#
public static readonly object LayoutLoaded

Event key raised after the grid changes its current page.

C#
public static readonly object PageChanged

Event key raised before the current page changes; handlers can cancel the change.

C#
public static readonly object PageChanging

Event key raised before the grid parses a clipboard format for pasting; handlers can cancel that format.

C#
public static readonly object Pasting

Event key raised after the grid's current row and column position changes.

C#
public static readonly object PositionChanged

Event key raised before the grid's current row and column position changes; handlers can cancel the change.

C#
public static readonly object PositionChanging

Event key raised after a row's Height, MinHeight, or MaxHeight changes.

C#
public static readonly object RowHeightChanged

Event key raised before a row's proposed height changes; handlers can cancel the change.

C#
public static readonly object RowHeightChanging

Event key used to route cell mouse movement to the containing row and the grid's row mouse-move event.

C#
public static readonly object RowMouseMove

Event key raised after a row's children are painted when custom drawing is enabled.

C#
public static readonly object RowPaint
C#
public static readonly object RowPropertyChanged

Event key used to route row collection and item-change notifications to the grid.

C#
public static readonly object RowsChanged

Event key raised before a row collection or item change; handlers can cancel the change.

C#
public static readonly object RowsChanging

Event key used when an unbound hierarchy provider requests root or child rows from the grid.

C#
public static readonly object RowSourceNeeded

Event key raised after row validation completes without being canceled.

C#
public static readonly object RowValidated

Event key raised before a row is accepted; handlers can cancel validation.

C#
public static readonly object RowValidating

Event key raised after the selected rows or cells change.

C#
public static readonly object SelectionChanged

Event key raised before a selection change; handlers can cancel the operation.

C#
public static readonly object SelectionChanging

Event key raised after the grid's sort descriptor collection changes.

C#
public static readonly object SortChangedEvent

Event key raised before sorting descriptors change; handlers can cancel the change.

C#
public static readonly object SortChangingEvent

Event key used to route row-scroller tooltip requests through the grid.

C#
public static readonly object ToolTipTextNeeded

Event key raised after a new row is committed.

C#
public static readonly object UserAddedRow

Event key raised before a new row is committed; handlers can cancel the addition.

C#
public static readonly object UserAddingRow
C#
public static readonly object UserChangedCurrentRow

Event key raised after a row is deleted.

C#
public static readonly object UserDeletedRow

Event key raised before a row is deleted; handlers can cancel the deletion.

C#
public static readonly object UserDeletingRow

Event key raised after a cell or editor value changes.

C#
public static readonly object ValueChanged

Event key used to notify the grid before a cell or editor value changes.

C#
public static readonly object ValueChanging

Event key raised when the grid template's column collection changes; listeners receive the collection-change details.

C#
public static readonly object ViewColumnsChanged

Properties

Gets whetehr the event dispatcher is suspended.

C#
public bool IsSuspended { get; }
Property Value:

The is suspended.

Methods

Adds the listener.

C#
public virtual void AddListener<T>(object eventKey, EventHandler<T> eventRaisingMethod) where T : EventArgs
Parameters:eventKeyobject

The event key.

eventRaisingMethodEventHandler<T>

The event raising method.

Clears all listeners

C#
public void ClearListeners()

Raises the event.

C#
public virtual void RaiseEvent<T>(object eventKey, object sender, T args) where T : EventArgs
Parameters:eventKeyobject

The event key.

senderobject

The sender.

argsT

The args.

Removes the listener.

C#
public virtual void RemoveListener<T>(object eventKey, EventHandler<T> eventRaisingMethod) where T : EventArgs
Parameters:eventKeyobject

The event key.

eventRaisingMethodEventHandler<T>

The event raising method.

Removes all listeners for specified key

C#
public void RemoveListenersByKey(object eventKey)
Parameters:eventKeyobject

Resumes the event.

C#
public void ResumeEvent(object key)
Parameters:keyobject

The key.

Resumes the notifications.

C#
public void ResumeNotifications()

Suspends the event.

C#
public void SuspendEvent(object key)
Parameters:keyobject

The key.

Suspends the notifications.

C#
public void SuspendNotifications()
In this article
DefinitionConstructorsEventDispatcher()FieldsAutoGeneratingColumnCellBeginEditCellClickCellClipboardCopyCellClipboardPasteCellEditorInitializedCellEndEditCellMouseMoveCellPaintCellValidatedCellValidatingCellValueChangedCellValueNeededCellValuePushedChildViewExpandedChildViewExpandingColumnChooserItemElementCreatingColumnIndexChangedColumnIndexChangingColumnPropertyChangedColumnWidthChangedColumnWidthChangingCommandCellClickConditionalFormattingFormShownContextMenuOpeningCopyingCreateCompositeFilterDialogCreateRowInfoCurrentCellChangedCurrentColumnChangedCurrentRowChangedCurrentRowChangingCustomFilteringCustomGroupingCustomSortingDataBindingCompleteDataErrorDefaultValuesNeededEditorRequiredEmptyExpressionEditorFormCreatedFilterChangedEventFilterChangingEventFilterExpressionChangedFilterPopupInitializedFilterPopupRequiredGroupByChangedGroupByChangingGroupExpandedGroupExpandingGroupSortChangedGroupSortChangingGroupSummaryEvaluateHeaderCellToggleStateChangedHyperlinkOpenedHyperlinkOpeningInvalidateRowLayoutLoadedPageChangedPageChangingPastingPositionChangedPositionChangingRowHeightChangedRowHeightChangingRowMouseMoveRowPaintRowPropertyChangedRowsChangedRowsChangingRowSourceNeededRowValidatedRowValidatingSelectionChangedSelectionChangingSortChangedEventSortChangingEventToolTipTextNeededUserAddedRowUserAddingRowUserChangedCurrentRowUserDeletedRowUserDeletingRowValueChangedValueChangingViewColumnsChangedPropertiesIsSuspendedMethodsAddListener<T>(object, EventHandler<T>)ClearListeners()RaiseEvent<T>(object, object, T)RemoveListener<T>(object, EventHandler<T>)RemoveListenersByKey(object)ResumeEvent(object)ResumeNotifications()SuspendEvent(object)SuspendNotifications()
Not finding the help you need?
Contact Support