Skip to main content

DataGridView Members

A data grid view.

Constructors

Name Description
DataGridView() Initializes a new instance of the DataGridView class.

Fields

Name Description
ActualFilterStringProperty static Identifies the ActualFilterString bindable property.
AdvancedColumnLayoutProperty static Identifies the AdvancedColumnLayout bindable property.
AllowCascadeTreeCreationProperty static Identifies the AllowCascadeTreeCreation bindable property.
AllowCascadeUpdateProperty static Identifies the AllowCascadeUpdate bindable property.
AllowDragDropRowsProperty static Identifies the AllowDragDropRows bindable property.
AllowDragDropSortedRowsProperty static Identifies the AllowDragDropSortedRows bindable property.
AllowGroupCollapseProperty static Identifies the AllowGroupCollapse bindable property.
AllowInitiallySelectedRowProperty static Identifies the AllowInitiallySelectedRow bindable property.
AllowLiveDataShapingProperty static Identifies the AllowLiveDataShaping bindable property.
AllowSortProperty static Identifies the AllowSort bindable property.
AllowVirtualHorizontalScrollingProperty static Identifies the AllowVirtualHorizontalScrolling bindable property.
AnchorXProperty static Bindable property for AnchorX. Inherited from VisualElement.
AnchorYProperty static Bindable property for AnchorY. Inherited from VisualElement.
AutoBestFitColumnsProperty static Identifies the AutoBestFitColumns bindable property.
AutoExpandAllGroupsProperty static Identifies the AutoExpandAllGroups bindable property.
AutoFilterRowHandle Gets or sets the Auto Filter Row’s handle.
AutoFilterRowHeightProperty static Identifies the AutoFilterRowHeight bindable property.
AutoGenerateColumnsModeProperty static Identifies the AutoGenerateColumnsMode bindable property.
AutomationIdProperty static Bindable property for AutomationId. Inherited from Element.
BackgroundColorProperty static Bindable property for BackgroundColor. Inherited from VisualElement.
BackgroundProperty static Bindable property for Background. Inherited from VisualElement.
BehaviorsProperty static Bindable property for Behaviors. Inherited from VisualElement.
BestFitItemsCountProperty static Identifies the BestFitItemsCount bindable property.
BestFitModeProperty static Identifies the BestFitMode bindable property.
BindingContextProperty static Bindable property for BindingContext. Inherited from BindableObject.
BorderColorProperty static Identifies the BorderColor bindable property.
BorderThicknessProperty static Identifies the BorderThickness bindable property.
CellAppearanceProperty static Identifies the CellAppearance bindable property.
ClassIdProperty static Bindable property for ClassId. Inherited from Element.
ClipProperty static Bindable property for Clip. Inherited from VisualElement.
ColumnHeaderAppearanceProperty static Identifies the ColumnHeaderAppearance bindable property.
ColumnHeaderContentTemplateProperty static Identifies the ColumnHeaderContentTemplate bindable property.
ColumnHeaderHeightProperty static Identifies the ColumnHeaderHeight bindable property.
DetailEditFormTemplateProperty static Identifies the DetailEditFormTemplate bindable property.
DetailFormTemplateProperty static Identifies the DetailFormTemplate bindable property.
DetailNewItemFormTemplateProperty static Identifies the DetailNewItemFormTemplate bindable property.
EditColumnProperty static Identifies the EditColumn bindable property.
EditItemProperty static Identifies the EditItem bindable property.
EditorProperty static Identifies the Editor bindable property.
EditorShowModeProperty static Identifies the EditorShowMode bindable property.
EditRowHandleProperty static Identifies the EditRowHandle bindable property.
EnableImmediatePostingProperty static Identifies the EnableImmediatePosting bindable property.
ExportCellAppearanceProperty static Identifies the ExportCellAppearance bindable property.
ExportColumnHeaderAppearanceProperty static Identifies the ExportColumnHeaderAppearance bindable property.
ExportColumnHeaderModeProperty static Identifies the ExportColumnHeaderMode bindable property.
ExportGroupRowAppearanceProperty static Identifies the ExportGroupRowAppearance bindable property.
ExportGroupSummaryAppearanceProperty static Identifies the ExportGroupSummaryAppearance bindable property.
ExportGroupSummaryProperty static Identifies the ExportGroupSummary bindable property.
ExportTotalSummaryAppearanceProperty static Identifies the ExportTotalSummaryAppearance bindable property.
ExportTotalSummaryProperty static Identifies the ExportTotalSummary bindable property.
ExtentHeightProperty static Identifies the ExtentHeight bindable property.
ExtentWidthProperty static Identifies the ExtentWidth bindable property.
FilterExpressionProperty static Identifies the FilterExpression bindable property.
FilterIconColorProperty static Identifies the FilterIconColor bindable property.
FilteringUITemplateProperty static Identifies the FilteringUITemplate bindable property.
FilterStringProperty static Identifies the FilterString bindable property.
FixedColumnSeparatorThicknessProperty static Identifies the FixedColumnSeparatorThickness bindable property.
FlowDirectionProperty static Bindable property for FlowDirection. Inherited from VisualElement.
FullSwipeModeProperty static Identifies the FullSwipeMode bindable property.
GroupCaptionTemplateProperty static Identifies the GroupCaptionTemplate bindable property.
GroupRowAppearanceProperty static Identifies the GroupRowAppearance bindable property.
GroupRowHeightProperty static Identifies the GroupRowHeight bindable property.
GroupRowTemplateProperty static Identifies the GroupRowTemplate bindable property.
GroupSummaryTemplateProperty static Identifies the GroupSummaryTemplate bindable property.
HeightProperty static Bindable property for Height. Inherited from VisualElement.
HeightRequestProperty static Bindable property for HeightRequest. Inherited from VisualElement.
HorizontalOptionsProperty static Bindable property for HorizontalOptions. Inherited from View.
IndicatorColorProperty static Identifies the IndicatorColor bindable property.
InputTransparentProperty static Bindable property for InputTransparent. Inherited from VisualElement.
InvalidRowHandle An invalid row handle. This value is returned when trying to access a row that does not exist in the grid.
IsColumnHeaderVisibleProperty static Identifies the IsColumnHeaderVisible bindable property.
IsEditingProperty static Identifies the IsEditing bindable property.
IsEnabledProperty static Bindable property for IsEnabled. Inherited from VisualElement.
IsFocusedProperty static Bindable property for IsFocused. Inherited from VisualElement.
IsFocusedPropertyKey static Bindable property for IsFocused. Inherited from VisualElement.
IsHorizontalScrollBarVisibleProperty static Identifies the IsHorizontalScrollBarVisible bindable property.
IsLoadMoreEnabledProperty static Identifies the IsLoadMoreEnabled bindable property.
IsPullToRefreshEnabledProperty static Identifies the IsPullToRefreshEnabled bindable property.
IsReadOnlyProperty static Identifies the IsReadOnly bindable property.
IsRefreshingProperty static Identifies the IsRefreshing bindable property.
IsVerticalScrollBarVisibleProperty static Identifies the IsVerticalScrollBarVisible bindable property.
IsVisibleProperty static Bindable property for IsVisible. Inherited from VisualElement.
ItemsSourceProperty static Identifies the ItemsSource bindable property.
LoadMoreCommandProperty static Identifies the LoadMoreCommand bindable property.
MarginProperty static Bindable property for Margin. Inherited from View.
MinimumHeightRequestProperty static Bindable property for MinimumHeightRequest. Inherited from VisualElement.
MinimumWidthRequestProperty static Bindable property for MinimumWidthRequest. Inherited from VisualElement.
NavigationProperty static Bindable property for Navigation. Inherited from VisualElement.
OpacityProperty static Bindable property for Opacity. Inherited from VisualElement.
propertyMapper protected Represents the view’s internal PropertyMapper. Inherited from View.
PullToRefreshCommandProperty static Identifies the PullToRefreshCommand bindable property.
ReduceHeightToContentProperty static Identifies the ReduceHeightToContent bindable property.
RotationProperty static Bindable property for Rotation. Inherited from VisualElement.
RotationXProperty static Bindable property for RotationX. Inherited from VisualElement.
RotationYProperty static Bindable property for RotationY. Inherited from VisualElement.
RowDoubleTapCommandProperty static Identifies the RowDoubleTapCommand bindable property.
RowDragPreviewShadowColorProperty static Identifies the RowDragPreviewShadowColor bindable property.
RowDragPreviewTemplateProperty static Identifies the RowDragPreviewTemplate bindable property.
RowHeightProperty static Identifies the RowHeight bindable property.
RowLongPressCommandProperty static Identifies the RowLongPressCommand bindable property.
RowTapCommandProperty static Identifies the RowTapCommand bindable property.
RowTapConfirmedCommandProperty static Identifies the RowTapConfirmedCommand bindable property.
ScaleProperty static Bindable property for Scale. Inherited from VisualElement.
ScaleXProperty static Bindable property for ScaleX. Inherited from VisualElement.
ScaleYProperty static Bindable property for ScaleY. Inherited from VisualElement.
SelectedItemProperty static Identifies the SelectedItem bindable property.
SelectedItemsProperty static Identifies the SelectedItems bindable property.
SelectedRowHandleProperty static Identifies the SelectedRowHandle bindable property.
SelectionModeProperty static Identifies the SelectionMode bindable property.
ShowAutoFilterRowProperty static Identifies the ShowAutoFilterRow bindable property.
ShowFilterIconProperty static Identifies the ShowFilterIcon bindable property.
ShowGroupedColumnsProperty static Identifies the ShowGroupedColumns bindable property.
SortModeProperty static Identifies the SortMode bindable property.
StyleProperty static Bindable property for Style. Inherited from VisualElement.
SwipeItemAppearanceProperty static Identifies the SwipeItemAppearance bindable property.
SwipeItemTemplateProperty static Identifies the SwipeItemTemplate bindable property.
TopRowVisibleIndexProperty static Identifies the TopRowVisibleIndex bindable property.
TotalSummaryAppearanceProperty static Identifies the TotalSummaryAppearance bindable property.
TotalSummaryHeightProperty static Identifies the TotalSummaryHeight bindable property.
TotalSummaryTemplateProperty static Identifies the TotalSummaryTemplate bindable property.
TotalSummaryVisibilityProperty static Identifies the TotalSummaryVisibility bindable property.
TranslationXProperty static Bindable property for TranslationX. Inherited from VisualElement.
TranslationYProperty static Bindable property for TranslationY. Inherited from VisualElement.
TriggersProperty static Bindable property for Triggers. Inherited from VisualElement.
VerticalLineThicknessProperty static Identifies the VerticalLineThickness bindable property.
VerticalOptionsProperty static Bindable property for VerticalOptions. Inherited from View.
VisibleRowCountProperty static Identifies the VisibleRowCount bindable property.
VisualProperty static Bindable property for Visual. Inherited from VisualElement.
WidthProperty static Bindable property for Width. Inherited from VisualElement.
WidthRequestProperty static Bindable property for WidthRequest. Inherited from VisualElement.
XProperty static Bindable property for X. Inherited from VisualElement.
YProperty static Bindable property for Y. Inherited from VisualElement.

Properties

Name Description
ActualAppearance Gets the common appearance settings that are applied to the current DataGridView.
ActualFilterString Gets the string that specifies a filter used in the grid. This is a bindable property.
AdvancedColumnLayout Gets or sets whether the grid displays its rows in multiple lines. This is a bindable property.
AllowCascadeTreeCreation Gets or sets whether the grid performs deferred data loading on start. This is a bindable property.
AllowCascadeUpdate Gets or sets whether the grid performs deferred data loading while it is scrolled vertically. This is a bindable property.
AllowDragDropRows Gets or sets whether a user is allowed to drag and drop data rows within the grid. This is a bindable property.
AllowDragDropSortedRows Gets or sets whether a user is allowed to drag and drop data rows that are sorted or grouped. This is a bindable property.
AllowGroupCollapse Gets or sets whether users can collapse and expand groups of rows. This is a bindable property.
AllowInitiallySelectedRow Gets or sets whether the first row is selected when the view is displayed on-screen for the first time. This is a bindable property.
AllowLiveDataShaping Gets or sets whether the DataGridView refreshes itself if the data source notifies the control of value changes. The control re-shapes its data: changes the sort order, applies filter conditions, calculates summaries, and carries out other necessary updates. This functionality is available for item source objects that implement the INotifyPropertyChanged interface. This is a bindable property.
AllowSort Gets or sets whether users can sort data in the grid. This is a bindable property.
AllowVirtualHorizontalScrolling Gets or sets whether virtual horizontal scrolling is activated. This is a bindable property.
AnchorX Gets or sets the X component of the center point for any transform operation, relative to the bounds of the element. This is a bindable property. Inherited from VisualElement.
AnchorY Gets or sets the Y component of the center point for any transform operation, relative to the bounds of the element. This is a bindable property. Inherited from VisualElement.
AutoBestFitColumns Gets or sets whether to calculate the column width based on the specified BestFitMode. This is a bindable property.
AutoExpandAllGroups Gets or sets whether users can expand all DataGridView groups. This is a bindable property.
AutoFilterRowHeight Gets or sets the Auto Filter Row’s height. This is a bindable property.
AutoGenerateColumnsMode Gets or sets whether columns should be automatically created for fields of the underlying data source, depending on whether the grid contains any columns. This is a bindable property.
AutomationId Gets or sets a value that allows the automation framework to find and interact with this element. Inherited from Element.
Background Gets or sets the Brush which will be used to fill the background of an element. This is a bindable property. Inherited from VisualElement.
BackgroundColor Gets or sets the Color which will fill the background of an element. This is a bindable property. Inherited from VisualElement.
Batched Gets a value that indicates there are batched changes done for this element. Inherited from VisualElement.
Behaviors Gets the list of Behavior objects associated to this element. This is a read-only bindable property. Inherited from VisualElement.
BestFitItemsCount Gets or sets the number of cells used to calculate the best-fit width for all columns. This is a bindable property.
BestFitMode Gets or sets the mode used to calculate the best-fit width for each column. This is a bindable property.
BindingContext

Gets or sets an object that contains the properties that will be targeted by the bound properties that belong to this BindableObject. This is a bindable property.

Inherited from BindableObject.
BorderColor Gets or sets the grid border color. This is a bindable property.
BorderThickness Gets or sets the grid border thickness. This is a bindable property.
Bounds Gets the bounds of the element in device-independent units. Inherited from VisualElement.
CellAppearance Gets or sets the appearance settings that are applied to the current DataGridView‘s cells. This is a bindable property.
class Gets or sets the style classes for the element. Inherited from NavigableElement.
ClassId Gets or sets a value used to identify a collection of semantically similar elements. Inherited from Element.
Clip Specifies the clipping region for an element. This is a bindable property. Inherited from VisualElement.
ColumnHeaderAppearance Gets or sets the appearance settings that are applied to the current DataGridView‘s column headers. This is a bindable property.
ColumnHeaderContentTemplate Gets or sets the template that defines the visual representation of column headers. This is a bindable property.
ColumnHeaderHeight Gets or sets the height of column headers in the grid. This is a bindable property.
Columns Provides access to the grid’s collection of columns.
Commands Returns the collection of DataGridView commands.
DesiredSize Gets the size that this element computed during the measure pass of the layout process. Inherited from VisualElement.
DetailEditFormTemplate Gets or sets the template used to build the edit form for a DataGridView row.
DetailFormTemplate Gets or sets the template used to build the view form for a DataGridView row.
DetailNewItemFormTemplate Gets or sets the template used to build the new item form for a DataGridView row.
DisableLayout Gets a value that indicates that layout for this element is disabled. Inherited from VisualElement.
Dispatcher

Gets the dispatcher that was available when this bindable object was created, otherwise tries to find the nearest available dispatcher (probably the window’s/app’s).

Inherited from BindableObject.
EditColumn Gets the GridColumn that includes the cell that is being edited. This is a bindable property.
EditItem Gets the edited item.
Editor Gets the editor that is displayed when the cell is being edited. This is a bindable property.
EditorShowMode Gets or sets a gesture by which a user can invoke an in-place editor for a data cell. This is a bindable property.
EditRowHandle Gets the row index that includes the cell that is being edited. This is a bindable property.
EffectControlProvider For internal use by .NET MAUI. Inherited from Element.
Effects Gets or sets the styles and properties that will be applied to the element during runtime. Inherited from Element.
EnableImmediatePosting Gets or sets whether to post values to a data source immediately after changing a cell value. This is a dependency property.
EndSwipeItems Provides access to objects that contain information on action buttons shown on the right side of a data row when a user swipes the row from right to left.
ExportCellAppearance Gets or sets the appearance object applied to cells in the exported document. This is a bindable property.
ExportColumnHeaderAppearance Gets or sets the appearance object applied to column header items in the exported document. This is a bindable property.
ExportColumnHeaderMode Gets or sets the location of DataGridView headers in an exported document. This is a bindable property.
ExportGroupRowAppearance Gets or sets the appearance object applied to group row items (including Group Summary) in the exported document. This is a bindable property.
ExportGroupSummary Gets or sets whether to print the group summary panel. This is a bindable property.
ExportGroupSummaryAppearance Gets or sets the appearance object applied to the group summary items in the exported document. This is a bindable property.
ExportTotalSummary Gets or sets whether to export the summary panel. This is a bindable property.
ExportTotalSummaryAppearance Gets or sets the appearance object applied to the total summary items when they are exported. This is a bindable property.
ExtentHeight Gets the extent height.
ExtentWidth Gets the extent width.
FilterExpression Gets or sets the grid’s filter expression. This is a bindable property.
FilterIconColor Gets or sets a color of the filter icon. This is a bindable property.
FilteringContext Returns the data context that is used to bind filter items to the Data Grid View.
FilteringUITemplate Gets or sets the template that is used to build the filter form for Data Grid rows.
FilterString Gets or sets the grid’s filter expression string. This is a bindable property.
FixedColumnSeparatorThickness Gets or sets the thickness of the line that separates fixed and scrollable columns. This is a bindable property.
FlowDirection Gets or sets the layout flow direction. This is a bindable property. Inherited from VisualElement.
Frame Gets or sets the frame this element resides in on screen. Inherited from VisualElement.
FullSwipeMode Gets or sets whether a full swipe across the row performs the first action from the grid’s StartSwipeItems or EndSwipeItems collection. This is a bindable property.
GestureRecognizers The collection of gesture recognizers associated with this view. Inherited from View.
GroupCaptionTemplate Gets or sets the template that defines the visual representation of a group row caption. This is a bindable property.
GroupCount Returns the number of data row groups within a grid.
GroupRowAppearance Gets or sets the appearance settings that are applied to the current DataGridView‘s group row. This is a bindable property.
GroupRowHeight Gets or sets the height of group rows in the grid. This is a bindable property.
GroupRowTemplate Gets or sets the template that defines the visual representation of group rows. This is a bindable property.
GroupSummaries Provides access to the collection of group summary items.
GroupSummaryTemplate Gets or sets the template that defines the visual representation of summary items displayed within group rows. This is a bindable property.
Handler Gets or sets the IViewHandler associated to this element. Inherited from VisualElement.
Height Gets the current rendered height of this element. This is a read-only bindable property. Inherited from VisualElement.
HeightRequest Gets or sets the desired height override of this element. This is a bindable property. Inherited from VisualElement.
HorizontalOptions Gets or sets the LayoutOptions that define how the element gets laid out in a layout cycle. This is a bindable property. Inherited from View.
Id Gets a value that can be used to uniquely identify an element throughout the run of your application. Inherited from Element.
IndicatorColor Gets or sets the color of the load-more (iOS and Android) and pull-to-refresh (iOS only) indicators. This is a bindable property.
InputTransparent Gets or sets a value indicating whether this element responds to hit testing during user interaction. This is a bindable property. Inherited from VisualElement.
IsColumnHeaderVisible Gets or sets whether column headers are shown in the grid. This is a bindable property.
IsEditing Gets whether the focused cell is currently being edited. This is a bindable property.
IsEnabled Gets or sets a value indicating whether this element is enabled in the user interface. This is a bindable property. Inherited from VisualElement.
IsFocused Gets a value indicating whether this element is focused currently. This is a bindable property. Inherited from VisualElement.
IsGrouped Returns whether the grid’s data is grouped.
IsHorizontalScrollBarVisible Gets or sets whether the horizontal scrollbar is shown in the grid. This is a bindable property.
IsInitialized Gets whether the DataGridView instance is initialized.
IsLoadMoreEnabled Gets or sets whether the load-more functionality is enabled in the grid. This is a bindable property.
IsPlatformEnabled Gets or sets a value that indicates whether this elements’s platform equivalent element is enabled. Inherited from VisualElement.
IsPullToRefreshEnabled Gets or sets whether the pull-to-refresh functionality is enabled in the grid. This is a bindable property.
IsReadOnly Gets or sets whether the grid is read-only. This is a bindable property.
IsRefreshing Allows you to hide the refresh or load indicator that the grid displays when executing the pull-to-refresh or load-more operation.
IsVerticalScrollBarVisible Gets or sets whether the vertical scrollbar is shown in the grid. This is a bindable property.
IsVisible Gets or sets a value that determines whether this element will be visible on screen and take up space in layouts. This is a bindable property. Inherited from VisualElement.
ItemsSource Gets or sets the grid’s data source. This is a bindable property.
LoadMoreCommand Gets or sets the command executed when a user scrolls to the bottom of the grid to load new data items. This is a bindable property.
LogicalChildren For internal use by the Microsoft.Maui.Controls platform. Inherited from Element.
Margin Gets or set the margin for the view. Inherited from View.
MinimumHeightRequest Gets or sets the minimum height the element will request during layout. This is a bindable property. Inherited from VisualElement.
MinimumWidthRequest Gets or sets the minimum width the element will request during layout. This is a bindable property. Inherited from VisualElement.
Navigation Gets the object responsible for handling stack-based navigation. Inherited from NavigableElement.
NavigationProxy Gets the cast of Navigation to a NavigationProxy. Inherited from NavigableElement.
Opacity Gets or sets the opacity value applied to the element when it is rendered. The range of this value is 0 to 1; values outside this range will be set to the nearest valid value. This is a bindable property. Inherited from VisualElement.
Parent Gets or sets the parent Element of this element. Inherited from Element.
PullToRefreshCommand Gets or sets the command executed when a user pulls the grid down to request content update. This is a bindable property.
RealParent For internal use by .NET MAUI. Inherited from Element.
ReduceHeightToContent Gets or sets whether the grid reduces its height to occupy the minimum space needed for its data rows. This is a bindable property.
Resources Gets or sets the local resource dictionary. Inherited from VisualElement.
Rotation Gets or sets the rotation (in degrees) about the Z-axis (affine rotation) when the element is rendered. This is a bindable property. Inherited from VisualElement.
RotationX Gets or sets the rotation (in degrees) about the X-axis (perspective rotation) when the element is rendered. This is a bindable property. Inherited from VisualElement.
RotationY Gets or sets the rotation (in degrees) about the Y-axis (perspective rotation) when the element is rendered. This is a bindable property. Inherited from VisualElement.
RowDoubleTapCommand Gets or sets a command executed when a user taps a data grid item twice. This is a bindable property.
RowDragPreviewShadowColor Gets or sets the shadow color of the dragged row preview. This is a bindable property.
RowDragPreviewTemplate Gets or sets the template that defines the visual representation of the dragged row preview displayed during the drag-and-drop operation. This is a bindable property.
RowHeight Gets or sets the height of data rows in the grid. This is a bindable property.
RowLongPressCommand Gets or sets a command executed when a user taps and holds an item within the grid control.
RowTapCommand Gets or sets the command executed when a user taps a row within the grid. This is a bindable property.
RowTapConfirmedCommand Gets or sets the command that confirms a single-tap action (which thus times out the second tap for a double-tap gesture). This is a bindable property.
Scale Gets or sets the scale factor applied to the element. This is a bindable property. Inherited from VisualElement.
ScaleX Gets or sets a scale value to apply to the X direction. This is a bindable property. Inherited from VisualElement.
ScaleY Gets or sets a scale value to apply to the Y direction. This is a bindable property. Inherited from VisualElement.
SelectedItem Gets or sets the data item that corresponds to the selected row. This is a bindable property.
SelectedItems Gets or sets the collection of data items that correspond to selected rows. This is a bindable property.
SelectedRowHandle Gets or sets the selected row handle. This is a bindable property.
SelectionMode Gets or sets whether a user can select rows. This is a bindable property.
ShowAutoFilterRow Gets or sets whether to display the Auto Filter Row, which allows a user to enter a value in a column to automatically filter values in this column according to a filter condition. This is a bindable property.
ShowFilterIcon Gets or sets whether to show the filter icons in the Auto Filter Row’s cells. This is a bindable property.
ShowGroupedColumns Gets or sets whether the grid displays a column used to group data. This is a bindable property.
SortMode Gets or sets whether the grid allows data sorting by multiple columns or by a single column only. This is a bindable property.
StartSwipeItems Provides access to objects that contain information on action buttons shown on the left side of a data row when a user swipes the row from left to right.
Style Gets or sets the unique Style for this element. Inherited from NavigableElement.
StyleClass Gets or sets the style classes for the element. Inherited from NavigableElement.
StyleId Gets or sets a user defined value to uniquely identify the element. Inherited from Element.
SwipeItemAppearance Gets or sets the appearance settings that are applied to the current DataGridView‘s swipe items. This is a bindable property.
SwipeItemTemplate Gets or sets the template that defines the visual representation of grid’s swipe items. This is a bindable property.
TopRowVisibleIndex Gets the index of the top visible row.
TotalSummaries Provides access to the collection of total summary items.
TotalSummaryAppearance Gets or sets the appearance settings that are applied to the current DataGridView‘s total summary items. This is a bindable property.
TotalSummaryHeight Gets or sets the total summary panel height. This is a bindable property.
TotalSummaryTemplate Gets or sets the template that defines the visual representation of total summary items. This is a bindable property.
TotalSummaryVisibility Gets or sets whether the total summary panel is displayed. This is a bindable property.
TranslationX Gets or sets the X translation delta of the element. This is a bindable property. Inherited from VisualElement.
TranslationY Gets or sets the Y translation delta of the element. This is a bindable property. Inherited from VisualElement.
Triggers Gets the list of TriggerBase objects associated to this element. This is a read-only bindable property. Inherited from VisualElement.
VerticalLineThickness Gets or sets the thickness of the grid’s vertical lines. This is a bindable property.
VerticalOptions Gets or sets the LayoutOptions that define how the element gets laid out in a layout cycle. This is a bindable property. Inherited from View.
VisibleColumns Gets the collection of visible columns.
VisibleRowCount Gets the total number of rows displayed within a grid.
Visual Gets or sets a IVisual implementation that overrides the visual appearance of an element. This is a bindable property. Inherited from VisualElement.
Width Gets the current width of this element. This is a read-only bindable property. Inherited from VisualElement.
WidthRequest Gets or sets the desired width override of this element. This is a bindable property. Inherited from VisualElement.
X Gets the current X position of this element. This is a read-only bindable property. Inherited from VisualElement.
Y Gets the current Y position of this element. This is a read-only bindable property. Inherited from VisualElement.

Methods

Name Description
ApplyBindings() protected Applies all the current bindings to BindingContext. Inherited from BindableObject.
BatchBegin() Signals the start of a batch of changes to the elements properties. This can benefit performance if a bigger number of property values are changed. Inherited from VisualElement.
BatchCommit() Signals the end of a batch of commands to the element and that those commands should now be committed. Inherited from VisualElement.
BeginUpdate() Locks the grid to prevent its visual updates until the EndUpdate method is called.
CalcBestFitAsync(GridColumn, Boolean) Calculates the best-fit width for all columns or for the specified column asynchronously. The CalcBestFitAsync method returns Task that completes when the column width calculates.
ChangeVisualState() protected Changes the current visual state based on this elements current property values. Inherited from VisualElement.
ClearColumnAutoFilter(GridColumn) Clears the filter that is set in the auto filter row. To specify the column, pass the column object to the method parameters.
ClearColumnAutoFilter(String) Clears the filter that is set in the auto filter row. To specify the column, pass its underlying field’s name to the method parameters.
ClearColumnFilter(GridColumn) Resets FilterString or FilterExpression applied to the column object passed in the method parameters. The method does not reset a filter set using the Auto Filter Row.
ClearColumnFilter(String) Resets FilterString or FilterExpression applied to the column. To specify the column, pass its underlying field’s name to the method parameters. The method does not reset a filter set using the Auto Filter Row.
ClearFilter() Clears the filter applied to data in the grid.
ClearGrouping() Ungroups data in the grid.
ClearSorting() Clears the sorting applied to the grid.
ClearValue(BindableProperty) Clears any value that is previously set for a bindable property. Inherited from BindableObject.
ClearValue(BindablePropertyKey) Clears any value that is previously set for a bindable property, identified by its key. Inherited from BindableObject.
CloseEditor(Boolean) Closes a cell in-place editor.
CoerceValue(BindableProperty)

Coerces the value of the specified bindable property. This is done by invoking BindableProperty.CoerceValueDelegate of the specified bindable property.

Inherited from BindableObject.
CoerceValue(BindablePropertyKey)

Coerces the value of the specified bindable property. This is done by invoking BindableProperty.CoerceValueDelegate of the specified bindable property.

Inherited from BindableObject.
CollapseAllGroups(Boolean) Collapses all groups of rows.
CollapseGroupRow(Int32, Boolean) Collapses the specified group of rows.
DeleteRow(Int32) Deletes the specified data row.
EffectIsAttached(String) For internal use by .NET MAUI. Inherited from Element.
EndUpdate() Unlocks the grid after the BeginUpdate method call and forces an immediate visual update.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from System.Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from System.Object.
ExpandAllGroups(Boolean) Expands all groups of rows.
ExpandGroupRow(Int32, Boolean) Expands the specified group of rows.
FindByName(String) Returns the element that has the specified name. Inherited from Element.
FindRowHandle(Object) Returns the handle of the DataGridView row that corresponds to a data object passed in the parameters.
FindRowHandle(Predicate<Object>) Returns the handle of the first row that matches the specified criteria.
FindRowHandle(String, Object) Searches for the value in the column and returns the handle of the corresponding row.
Focus() Attempts to set focus to this element. Inherited from VisualElement.
GetCellDisplayText(Int32, GridColumn) Gets the text displayed within the specified cell.
GetCellDisplayText(Int32, String) Gets the text displayed within the specified cell.
GetCellValue(Int32, GridColumn) Returns the value of the specified data cell.
GetCellValue(Int32, String) Returns the value of the specified data cell.
GetChildElements(Point) Gets the child elements that are visually beneath the specified point. Inherited from View.
GetChildRowCount(Int32) Returns the number of data rows in a specific group.
GetChildRowHandle(Int32, Int32) Returns the handle of a row at the specified position within the specified group.
GetGroupDisplayText(Int32) Returns an actual or formatted value displayed in the specified group row (group header).
GetGroupSummaryValue(Int32, GridColumnSummary) Returns a summary value calculated against the specified group of rows.
GetGroupValue(Int32) Returns an actual value displayed in the specified group row (group header).
GetHashCode() Serves as the default hash function. Inherited from System.Object.
GetParentRowHandle(Int32) Returns the group row handle that identifies the group to which the specified data row belongs.
GetRowHandle(Int32) Returns the handle of the row that corresponds to the specified record in the data source.
GetRowHandleByVisibleIndex(Int32) Returns a row’s handle by its visible index.
GetRowItem(Int32) Returns an object that represents a record in the grid’s underlying data source.
GetRowItemBySourceIndex(Int32) Returns the data source object by its index.
GetRowSourceIndex(Int32) Gets the index of the data source record to which the specified row handle corresponds.
GetRowVisibleIndex(Int32) Returns the row’s position within a DataGridView by its handle.
GetSelectedRowHandles() Returns the collection of selected row handles.
GetTotalSummaryValue(GridColumnSummary) Returns the value of the specified total summary item.
GetType() Gets the Type of the current instance. Inherited from System.Object.
GetValue(BindableProperty) Returns the value that is contained in the given bindable property. Inherited from BindableObject.
GroupBy(GridColumn) Groups data in the grid by the specified column.
GroupBy(String) Groups data in the grid by the specified column.
Initialize() Initializes the DataGridView from XAML.
InvalidateMeasure() protected Marks the current measure of an element as invalidated. Inherited from VisualElement.
InvalidateMeasureNonVirtual(InvalidationTrigger) Invalidates the measure of an element. Inherited from VisualElement.
InvalidateMeasureOverride() protected Provides a way to allow subclasses (e.g., Layout) to override InvalidateMeasure() Inherited from VisualElement.
IsGroupCollapsed(Int32) Indicates whether the specified group row is collapsed.
IsGroupRow(Int32) Checks whether the specified row is a group row.
IsSet(BindableProperty) Determines whether or not a bindable property exists and has a value set. Inherited from BindableObject.
Measure(Double, Double, MeasureFlags) Returns the minimum size that an element needs in order to be displayed on the device. Inherited from VisualElement.
MeasureOverride(Double, Double) protected Allows subclasses to implement custom Measure logic during a controls measure pass. Inherited from VisualElement.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from System.Object.
MergeColumnFilters(CriteriaOperator) Combines the specified filter with the grid’s current filter with the AND operator.
MergeColumnFilters(String) Combines the specified filter with the grid’s current filter with the AND operator.
IElementController.SetValueFromRenderer(BindableProperty, Object) For internal use by .NET MAUI. Inherited from Element.
MoveRow(Int32, Int32, Action) Moves the row with the specified index to the specified position within the DataGridView with the specified action.
OnChildAdded(Element) protected Invoked when a child object is added to this element. Inherited from VisualElement.
OnChildRemoved(Element, Int32) protected Invoked when a child object is removed from this element. Inherited from VisualElement.
OnChildrenReordered() protected Raises the ChildrenReordered event. Inherited from VisualElement.
OnMeasure(Double, Double) protected Method that is called when a layout measurement happens. Inherited from VisualElement.
OnPropertyChanging(String) protected Raises the PropertyChanging event. Inherited from BindableObject.
OpenEditor(Int32, String) Invokes an in-place editor for the specified cell.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from System.Object.
RefreshData() Updates the grid’s data.
RefreshRow(Int32) Refreshes the row specified by its handle.
RemoveBinding(BindableProperty) Removes a previously set binding from a bindable property. Inherited from BindableObject.
RemoveDynamicResource(BindableProperty) Removes a previously set dynamic resource. Inherited from Element.
ScrollToColumn(GridColumn) Makes the specified column visible onscreen.
ScrollToColumn(Int32) Makes the specified column visible onscreen.
ScrollToRow(Int32) Scrolls the grid to make the specified row visible.
SetBinding(BindableProperty, BindingBase) Assigns a binding to a bindable property. Inherited from BindableObject.
SetCellValue(Int32, GridColumn, Object) Sets the specified cell’s value.
SetCellValue(Int32, String, Object) Sets the specified cell’s value.
SetDynamicResource(BindableProperty, String) Sets the BindableProperty property of this element to be updated via the DynamicResource with the provided key. Inherited from Element.
SetInheritedBindingContext(BindableObject, Object) static Sets the inherited context to a nested element. Inherited from BindableObject.
SetValue(BindableProperty, Object) Sets the value of the specified bindable property. Inherited from BindableObject.
SetValue(BindablePropertyKey, Object) Sets the value of the specified bindable property. Inherited from BindableObject.
SetValueCore(BindableProperty, Object, SetValueFlags) For internal use by the Microsoft.Maui.Controls platform. Inherited from BindableObject.
SetValueFromRenderer(BindableProperty, Object) For internal use by .NET MAUI. Inherited from Element.
SetValueFromRenderer(BindablePropertyKey, Object) For internal use by .NET MAUI. Inherited from Element.
ShowDetailEditForm(Int32, Boolean) Invokes an edit form for a DataGridView row with the specified handle.
ShowDetailForm(Int32, Boolean) Invokes a view form for a DataGridView row with the specified handle.
ShowDetailNewItemForm(Boolean) Invokes a form used to create a new Data Grid View item.
ShowFilteringUIForm() Invokes the form that allows users to filter DataGridView items.
SizeAllocated(Double, Double) protected Method that is called during a layout cycle to signal the start of a sub-tree layout. Inherited from VisualElement.
SortBy(GridColumn, DataSortOrder, Int32) Sorts data by values of the specified column in the specified order, and places the column at the specified position among the sorted columns.
SortBy(String, DataSortOrder, Int32) Sorts data by values of the specified column in the specified order, and places the column at the specified position among the sorted columns.
ToString() Returns a string that represents the current object. Inherited from System.Object.
UnapplyBindings() protected Removes all current bindings from the current context. Inherited from BindableObject.
Unfocus() Unsets keyboard focus on this element. Inherited from VisualElement.

Events

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