.NET Framework Class Library for Silverlight
DataGrid Events
The DataGrid type exposes the following members.
Events
| Name | Description | |
|---|---|---|
|
AutoGeneratingColumn | Occurs one time for each public, non-static property in the bound data type when the ItemsSource property is changed and the AutoGenerateColumns property is true. |
|
BeginningEdit | Occurs before a cell or row enters editing mode. |
|
BindingValidationError | Occurs when a data validation error is reported by a binding source. (Inherited from FrameworkElement.) |
|
CellEditEnded | Occurs when a cell edit has been committed or canceled. |
|
CellEditEnding | Occurs when a cell edit is ending. |
|
ColumnDisplayIndexChanged | Occurs when the DisplayIndex property of a column changes. |
|
ColumnHeaderDragCompleted | Occurs when the user drops a column header that was being dragged using the mouse. |
|
ColumnHeaderDragDelta | Occurs one or more times while the user drags a column header using the mouse. |
|
ColumnHeaderDragStarted | Occurs when the user begins dragging a column header using the mouse. |
|
ColumnReordered | Occurs when a DataGrid column has moved to a new position in the display order. |
|
ColumnReordering | Occurs before a DataGrid column moves to a new position in the display order. |
|
CopyingRowClipboardContent | Occurs when the row is prepared for a clipboard copy operation. |
|
CurrentCellChanged | Occurs when a different cell becomes the current cell. |
|
DataContextChanged | Occurs when the data context for this element changes. (Inherited from FrameworkElement.) |
|
DragEnter | Occurs when the input system reports an underlying drag event with this element as the target. (Inherited from UIElement.) |
|
DragLeave | Occurs when the input system reports an underlying drag event with this element as the origin. (Inherited from UIElement.) |
|
DragOver | Occurs when the input system reports an underlying drag event with this element as the potential drop target. (Inherited from UIElement.) |
|
Drop | Occurs when the input system reports an underlying drop event with this element as the drop target. (Inherited from UIElement.) |
|
GotFocus | Occurs when a UIElement receives focus. (Inherited from UIElement.) |
|
IsEnabledChanged | Occurs when the IsEnabled property changes. (Inherited from Control.) |
|
KeyDown | Occurs when a keyboard key is pressed while the UIElement has focus. (Inherited from UIElement.) |
|
KeyUp | Occurs when a keyboard key is released while the UIElement has focus. (Inherited from UIElement.) |
|
LayoutUpdated | Occurs when the layout of the Silverlight visual tree changes. (Inherited from FrameworkElement.) |
|
Loaded | Occurs when a FrameworkElement has been constructed and added to the object tree. (Inherited from FrameworkElement.) |
|
LoadingRow | Occurs after a DataGridRow is instantiated, so that you can customize it before it is used. |
|
LoadingRowDetails | Occurs when a new row details template is applied to a row, so that you can customize the details section before it is used. |
|
LoadingRowGroup | Occurs when a row group header is loading, so that you can customize the header before it is used. |
|
LostFocus | Occurs when a UIElement loses focus. (Inherited from UIElement.) |
|
LostMouseCapture | Occurs when the UIElement loses mouse capture. (Inherited from UIElement.) |
|
MediaCommand | Occurs when a button is pressed on a remote control. (Inherited from UIElement.) |
|
MouseEnter | Occurs when the mouse (or a stylus) enters the bounding area of a UIElement. (Inherited from UIElement.) |
|
MouseLeave | Occurs when the mouse (or the stylus) leaves the bounding area of a UIElement. (Inherited from UIElement.) |
|
MouseLeftButtonDown | Occurs when the left mouse button is pressed (or when the tip of the stylus touches the tablet) while the mouse pointer is over a UIElement. (Inherited from UIElement.) |
|
MouseLeftButtonUp | Occurs when the left mouse button is released (or the tip of the stylus is removed from the tablet) while the mouse (or the stylus) is over a UIElement (or while a UIElement holds mouse capture). (Inherited from UIElement.) |
|
MouseMove | Occurs when the coordinate position of the mouse (or stylus) changes while over a UIElement (or while a UIElement holds mouse capture). (Inherited from UIElement.) |
|
MouseRightButtonDown | Occurs when the right mouse button is pressed while the mouse pointer is over a UIElement. (Inherited from UIElement.) |
|
MouseRightButtonUp | Occurs when the right mouse button is released while the mouse pointer is over a UIElement. However, this event will only be raised if a caller marks the preceding MouseRightButtonDown event as handled; see Remarks. (Inherited from UIElement.) |
|
MouseWheel | Occurs when the user rotates the mouse wheel while the mouse pointer is over a UIElement, or the UIElement has focus. (Inherited from UIElement.) |
|
PreparingCellForEdit | Occurs when a cell in a DataGridTemplateColumn enters editing mode. |
|
RowDetailsVisibilityChanged | Occurs when the RowDetailsVisibilityMode property value changes. |
|
RowEditEnded | Occurs when a row edit has been committed or canceled. |
|
RowEditEnding | Occurs when a row edit is ending. |
|
SelectionChanged | Occurs when the SelectedItem or SelectedItems property value changes. |
|
SizeChanged | Occurs when either the ActualHeight or the ActualWidth properties change value on a FrameworkElement. (Inherited from FrameworkElement.) |
|
TextInput | Occurs when a UI element gets text in a device-independent manner. (Inherited from UIElement.) |
|
TextInputStart | Occurs when a UI element initially gets text in a device-independent manner. (Inherited from UIElement.) |
|
TextInputUpdate | Occurs when text continues to be composed via an input method editor (IME). (Inherited from UIElement.) |
|
Unloaded | Occurs when this object is no longer connected to the main object tree. (Inherited from FrameworkElement.) |
|
UnloadingRow | Occurs when a DataGridRow object becomes available for reuse. |
|
UnloadingRowDetails | Occurs when a row details element becomes available for reuse. |
|
UnloadingRowGroup | Occurs when a row group is unloading. |
See Also