DataGrid Events
.NET Framework 1.1
The events of the DataGrid class are listed here. For a complete list of DataGrid class members, see the DataGrid Members topic.
Public Events
AllowNavigationChanged | Occurs when the AllowNavigation property has changed. |
BackButtonClick | Occurs when the Back button on a child table is clicked. |
BackColorChanged (inherited from Control) | Occurs when the value of the BackColor property changes. |
BackgroundColorChanged | Occurs when the BackgroundColor has changed. |
BindingContextChanged (inherited from Control) | Occurs when the value of the BindingContext property changes. |
BorderStyleChanged | Occurs when the BorderStyle has changed. |
CaptionVisibleChanged | Occurs when the CaptionVisible property has changed. |
CausesValidationChanged (inherited from Control) | Occurs when the value of the CausesValidation property changes. |
ChangeUICues (inherited from Control) | Occurs when the focus or keyboard user interface (UI) cues change. |
Click (inherited from Control) | Occurs when the control is clicked. |
ContextMenuChanged (inherited from Control) | Occurs when the value of the ContextMenu property changes. |
ControlAdded (inherited from Control) | Occurs when a new control is added to the Control.ControlCollection. |
ControlRemoved (inherited from Control) | Occurs when a control is removed from the Control.ControlCollection. |
CurrentCellChanged | Occurs when the CurrentCell property has changed. |
DataSourceChanged | Occurs when the DataSource property value has changed. |
Disposed (inherited from Component) | Adds an event handler to listen to the Disposed event on the component. |
DockChanged (inherited from Control) | Occurs when the value of the Dock property changes. |
DoubleClick (inherited from Control) | Occurs when the control is double-clicked. |
DragDrop (inherited from Control) | Occurs when a drag-and-drop operation is completed. |
DragEnter (inherited from Control) | Occurs when an object is dragged into the control's bounds. |
DragLeave (inherited from Control) | Occurs when an object is dragged out of the control's bounds. |
DragOver (inherited from Control) | Occurs when an object is dragged over the control's bounds. |
EnabledChanged (inherited from Control) | Occurs when the Enabled property value has changed. |
Enter (inherited from Control) | Occurs when the control is entered. |
FlatModeChanged | Occurs when the FlatMode has changed. |
FontChanged (inherited from Control) | Occurs when the Font property value changes. |
ForeColorChanged (inherited from Control) | Occurs when the ForeColor property value changes. |
GiveFeedback (inherited from Control) | Occurs during a drag operation. |
GotFocus (inherited from Control) | Occurs when the control receives focus. |
HandleCreated (inherited from Control) | Occurs when a handle is created for the control. |
HandleDestroyed (inherited from Control) | Occurs when the control's handle is in the process of being destroyed. |
HelpRequested (inherited from Control) | Occurs when the user requests help for a control. |
ImeModeChanged (inherited from Control) | Occurs when the ImeMode property has changed. |
Invalidated (inherited from Control) | Occurs when a control's display requires redrawing. |
KeyDown (inherited from Control) | Occurs when a key is pressed while the control has focus. |
KeyPress (inherited from Control) | Occurs when a key is pressed while the control has focus. |
KeyUp (inherited from Control) | Occurs when a key is released while the control has focus. |
Layout (inherited from Control) | Occurs when a control should reposition its child controls. |
Leave (inherited from Control) | Occurs when the input focus leaves the control. |
LocationChanged (inherited from Control) | Occurs when the Location property value has changed. |
LostFocus (inherited from Control) | Occurs when the control loses focus. |
MouseDown (inherited from Control) | Occurs when the mouse pointer is over the control and a mouse button is pressed. |
MouseEnter (inherited from Control) | Occurs when the mouse pointer enters the control. |
MouseHover (inherited from Control) | Occurs when the mouse pointer hovers over the control. |
MouseLeave (inherited from Control) | Occurs when the mouse pointer leaves the control. |
MouseMove (inherited from Control) | Occurs when the mouse pointer is moved over the control. |
MouseUp (inherited from Control) | Occurs when the mouse pointer is over the control and a mouse button is released. |
MouseWheel (inherited from Control) | Occurs when the mouse wheel moves while the control has focus. |
Move (inherited from Control) | Occurs when the control is moved. |
Navigate | Occurs when the user navigates to a new table. |
Paint (inherited from Control) | Occurs when the control is redrawn. |
ParentChanged (inherited from Control) | Occurs when the Parent property value changes. |
ParentRowsLabelStyleChanged | Occurs when the label style of the parent row is changed. |
ParentRowsVisibleChanged | Occurs when the ParentRowsVisible property value changes. |
QueryAccessibilityHelp (inherited from Control) | Occurs when AccessibleObject is providing help to accessibility applications. |
QueryContinueDrag (inherited from Control) | Occurs during a drag-and-drop operation and allows the drag source to determine whether the drag-and-drop operation should be canceled. |
ReadOnlyChanged | Occurs when the ReadOnly property value changes. |
Resize (inherited from Control) | Occurs when the control is resized. |
RightToLeftChanged (inherited from Control) | Occurs when the RightToLeft property value changes. |
Scroll | Occurs when the user scrolls the System.Windows.Forms.DataGrid control. |
ShowParentDetailsButtonClick | Occurs when the ShowParentDetails button is clicked. |
SizeChanged (inherited from Control) | Occurs when the Size property value changes. |
StyleChanged (inherited from Control) | Occurs when the control style changes. |
SystemColorsChanged (inherited from Control) | Occurs when the system colors change. |
TabIndexChanged (inherited from Control) | Occurs when the TabIndex property value changes. |
TabStopChanged (inherited from Control) | Occurs when the TabStop property value changes. |
Validated (inherited from Control) | Occurs when the control is finished validating. |
Validating (inherited from Control) | Occurs when the control is validating. |
VisibleChanged (inherited from Control) | Occurs when the Visible property value changes. |
Protected Events
RowHeaderClick | Occurs when a row header is clicked. |

