DataGridView Events

A data grid view.
Name Description
AutoGeneratingColumn Occurs each time an individual column is generated automatically.
CalculateCustomSummary Allows you to specify a custom rule to calculate data summaries.
CompleteRowDragDrop Occurs after the drag-and-drop operation is completed.
CustomCellStyle Occurs before a data cell is painted.
CustomizeCellDisplayText Allows you to provide a custom display text for any data cell.
CustomUnboundColumnData Enables you to populate unbound columns with data, and save changes that users made in unbound columns.
DoubleTap Occurs when a user double taps the grid.
DragRow Occurs when users touch and hold a data row to drag it.
DragRowOver Occurs each time a row is over another row when being dragged.
DropRow Occurs when users drop a row.
GroupCollapsed Occurs after a group of rows has been collapsed.
GroupCollapsing Occurs before a group of rows is collapsed.
GroupExpanded Occurs after a group of rows has been expanded.
GroupExpanding Occurs before a group of rows is expanded.
LoadMore Occurs when a user scrolls to the bottom of the grid to load new data items.
LongPress Occurs when a user taps and holds anywhere within the grid.
PullToRefresh Occurs when a user pulls the grid down to refresh its content.
SelectionChanged Occurs after the selected row has been changed in the grid.
ShowingEditor Fires when a cell editor is about to be displayed and allows you to cancel the action.
SwipeItemShowing Fires when a swipe item is about to be shown when a user swipes a row from left to right or from right to left, and allows you to cancel the action.
Tap Occurs when a user taps the grid.
TapConfirmed Occurs when a single tap is confirmed (a user tapped the grid and a second tap leading to the double-tap gesture did not follow).
ValidateCell Occurs after a user changes a cell value in the in-place editor and attempts to select another cell.
ValidationError Occurs when a value in the in-place cell editor fails validation or when it cannot be saved to a data source.
See Also