Skip to main content

DataGridView Events

A data grid view.
Name Description
AutoGeneratingColumn Occurs each time an individual column is generated automatically.
BatchCommitted Occurs when a batch of property changes have been committed by calling BatchCommit(). Inherited from VisualElement.
BindingContextChanged Occurs when the value of the BindingContext property changes. Inherited from BindableObject.
ChildAdded Raised whenever a child element is added to the element. Inherited from Element.
ChildRemoved Raised whenever a child element is removed from the element. Inherited from Element.
ChildrenReordered Occurs when the order of this element’s children changes. Inherited from VisualElement.
CompleteRowDragDrop Occurs after the drag-and-drop operation is completed.
CreateDetailFormViewModel Occurs before the detail view or edit form is invoked.
CustomCellAppearance Occurs before a data cell is painted.
CustomCellDisplayText Occurs before a data cell’s text is displayed.
CustomCellExport Allows you to customize an exported cell.
CustomColumnHeaderExport Allows you to customize an exported column header.
CustomFilter Allows you to apply custom filter rules to grid rows.
CustomGroup Enables you to group data in a custom manner.
CustomGroupDisplayText Allows you to customize text for group rows.
CustomGroupRowExport Allows you to customize an exported group row.
CustomGroupSummaryExport Allows you to customize an exported group summary.
CustomSort Enables you to sort data in a custom manner.
CustomSummary Allows you to specify a custom rule to calculate data summaries.
CustomTotalSummaryExport Allows you to customize an exported total summary.
CustomUnboundData Enables you to populate unbound columns with data, and save changes that users made in unbound columns.
DescendantAdded Raised whenever a child element is added to the element’s subtree. Inherited from Element.
DescendantRemoved Raised whenever a child element is removed from the elements subtree. Inherited from Element.
DetailFormShowing Occurs before the DataGridView invokes a detail form.
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.
EditorShowing Fires when a cell editor is about to be displayed and allows you to cancel the action.
EditorShown Occurs when the DataGridView cell’s editor is displayed.
FilteringUIFormShowing Occurs before the filter form is invoked and allows you to customize its options.
FocusChangeRequested Occurs when a focus change is requested. Inherited from VisualElement.
Focused Occurs when this element is focused. Inherited from VisualElement.
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.
MeasureInvalidated Occurs when the current measure of an element has been invalidated. Inherited from VisualElement.
PropertyChanged Occurs when a property value changes. Inherited from BindableObject.
PropertyChanging Occurs when a property value is changing. Inherited from BindableObject.
PullToRefresh Occurs when a user pulls the grid down to refresh its content.
Scrolled Fires after a DataGridView is scrolled.
SelectionChanged Fires when the selected row is changed.
SizeChanged Occurs when the size of an element changed. Inherited from VisualElement.
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).
Unfocused Occurs when this element is unfocused. Inherited from VisualElement.
ValidateAndSave Allows you to validate data item values before they are committed to the data source.
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