DataGridView Properties
A data grid view.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. |
AutoExpandAllGroups | |
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. |
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. |
CellAppearance | Gets or sets the appearance settings that are applied to the current DataGridView‘s cells. This is a bindable property. |
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. |
EditColumn | |
EditItem | |
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 | |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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‘s instance is initialized. |
IsLoadMoreEnabled | Gets or sets whether the load-more functionality is enabled in the grid. This is a bindable property. |
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. |
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. |
PullToRefreshCommand | Gets or sets the command executed when a user pulls the grid down to request content update. This is a bindable property. |
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. |
RestoreCollectionsMode | |
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. |
RowTapCommand | Gets or sets the command executed when a user taps a row within the grid. This is a bindable property. |
SelectedItem | Returns an object that specifies a data source record to which a data row currently selected in the grid corresponds. This is a bindable property. |
SelectedRowHandle | Gets or sets the selected row handle. This is a bindable property. |
SelectionMode | Gets or sets whether end users can select rows in the grid. 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. |
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. |
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. |
VerticalLineThickness | Gets or sets the thickness of the grid’s vertical lines. This is a bindable property. |
VisibleColumns | Gets the collection of visible columns. |
VisibleRowCount | Gets the total number of rows displayed within a grid. |
See Also