DataGridView Members
In This Article
#Constructors
Name | Description |
---|---|
Data |
Initializes a new instance of the Data |
#Fields
#Properties
Name | Description |
---|---|
Actual |
Gets the string that specifies a filter currently used in the grid. |
Advanced |
Allows you to use the multi-row layout for the grid. |
Allow |
Gets or sets whether the grid performs deferred data loading on start. |
Allow |
Gets or sets whether the grid performs deferred data loading while vertical scrolling. |
Allow |
Gets or sets whether a user is allowed to drag and drop data rows within the grid. |
Allow |
Gets or sets whether a user is allowed to drag and drop data rows that are sorted or grouped. |
Allow |
Specifies whether end users can collapse and expand groups of rows. |
Allow |
Gets or sets whether the first row is selected when the view is displayed on-screen for the first time. |
Allow |
Specifies whether end users can sort data in the grid. |
Allow |
Specifies whether virtual horizontal scrolling is activated. |
Auto |
Gets or sets the Auto Filter Row‘s height. |
Auto |
Gets or sets whether columns should be automatically created for fields of the underlying data source, depending on whether the grid contains any columns. |
Border |
Gets or sets the grid border color. |
Border |
Gets or sets the grid border thickness. |
Cell |
Gets or sets the data cell appearance settings. |
Column |
Gets or sets the template that defines the visual representation of column headers. |
Column |
Gets or sets the height of column headers in the grid. |
Column |
Gets or sets the column header appearance settings. |
Columns | Provides access to the grid’s collection of columns. |
Edit |
|
Editor |
Gets or sets a gesture by which a user can invoke an in-place editor for a data cell. |
End |
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. |
Filter |
Gets or sets the grid’s filter expression. |
Filter |
Gets or sets the grid’s filter expression string. |
Fixed |
Gets or sets the thickness of the line that separates fixed and scrollable columns. |
Full |
Specifies whether a full swipe across the row performs the first action from the grid’s Start |
Group |
Gets or sets the template that defines the visual representation of a group row caption. |
Group |
Gets the number of data row groups within a grid. |
Group |
Gets or sets the height of group rows in the grid. |
Group |
Gets or sets the group row appearance settings. |
Group |
Gets or sets the template that defines the visual representation of group rows. |
Groups |
Gets or sets whether groups of rows should appear expanded or collapsed immediately after the grid’s data is grouped. |
Group |
Provides access to the collection of group summary items. |
Group |
Gets or sets the template that defines the visual representation of summary items displayed within group rows. |
Indicator |
Gets or sets the color of the load-more (i |
Is |
Specifies whether column headers are shown in the grid. |
Is |
|
Is |
Gets whether the grid’s data is grouped. |
Is |
Gets or sets whether the horizontal scrollbar is shown in the grid. |
Is |
Gets or sets whether the load-more functionality is enabled in the grid. |
Is |
Gets or sets whether the pull-to-refresh functionality is enabled in the grid. |
Is |
Gets or sets whether the grid is read-only. |
Is |
Allows you to hide the refresh or load indicator that the grid displays when executing the pull-to-refresh or load-more operation. |
Is |
Gets or sets whether the grid is locked for updating. |
Is |
Gets or sets whether the vertical scrollbar is shown in the grid. |
Items |
Gets or sets the grid’s data source. |
Load |
Gets or sets the command executed when a user scrolls to the bottom of the grid to load new data items. |
Pull |
Gets or sets the command executed when a user pulls the grid down to request content update. |
Reduce |
Gets or sets whether the grid reduces its height to occupy the minimum space needed for its data rows. |
Restore |
|
Row |
Gets the number of data rows in a grid. |
Row |
Gets or sets the shadow color of the dragged row preview. |
Row |
Gets or sets the template that defines the visual representation of the dragged row preview displayed during the drag-and-drop operation. |
Row |
Gets or sets the height of data rows in the grid. |
Row |
Gets or sets the command executed when a user taps a row within the grid. |
Selected |
Returns an object that specifies a data source record to which a data row currently selected in the grid corresponds. |
Selected |
Gets or sets the selected row handle. |
Selection |
Gets or sets whether end users can select rows in the grid. |
Show |
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. |
Show |
Gets or sets whether to show the filter icons in the Auto Filter Row‘s cells. |
Show |
Gets or sets whether the grid displays a column used to group data. |
Sort |
Specifies whether the grid allows data sorting by multiple columns or by a single column only. |
Start |
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. |
Swipe |
Gets or sets the swipe item appearance settings. |
Swipe |
Gets or sets the template that defines the visual representation of grid’s swipe items. |
Total |
Provides access to the collection of total summary items. |
Total |
Gets or sets the total summary panel height. |
Total |
Gets or sets the total summary panel appearance settings. |
Total |
Gets or sets the template that defines the visual representation of total summary items. |
Total |
Specifies whether the total summary panel is displayed. |
Vertical |
Gets or sets the thickness of the grid’s vertical lines. |
Visible |
Gets the collection of visible columns. |
Visible |
Gets the total number of rows displayed within a grid. |
#Methods
Name | Description |
---|---|
After |
|
Before |
|
Begin |
Locks the grid to prevent its visual updates until the End |
Clear |
|
Clear |
|
Clear |
|
Clear |
Clears the filter applied to data in the grid. |
Clear |
Ungroups data in the grid. |
Clear |
Clears the sorting applied to the grid. |
Close |
Closes a cell in-place editor. |
Collapse |
Collapses all groups of rows. |
Collapse |
Collapses the specified group of rows. |
Delete |
Deletes the specified data row. |
End |
Unlocks the grid after the Begin |
Expand |
Expands all groups of rows. |
Expand |
Expands the specified group of rows. |
Find |
Returns the handle of the first row that matches the specified criteria. |
Find |
|
Find |
Searches for the value in the column and returns the handle of the corresponding row. |
Get |
Gets the text displayed within the specified cell. |
Get |
Gets the text displayed within the specified cell. |
Get |
Gets the value of the specified cell. |
Get |
Gets the value of the specified cell. |
Get |
Returns the number of data rows in the group. |
Get |
Returns the handle of the row at the specified position within the specified group. |
Get |
Returns a value for which the group is created and which is displayed in a group row. |
Get |
Returns a summary value calculated against the specified group of rows. |
Get |
Returns the column’s data value for which the group is created. |
Get |
Returns an object that represents a record in the grid’s underlying data source. |
Get |
Returns the group row handle that identifies the group to which the specified data row belongs. |
Get |
Returns the handle of the row that corresponds to the specified record in the data source. |
Get |
|
Get |
Gets the index of the data source record to which the specified row handle corresponds. |
Get |
|
Group |
Groups data in the grid by the specified column. |
Group |
Groups data in the grid by the specified column. |
Is |
Indicates whether the specified group row is collapsed. |
Is |
Checks whether the specified row is a group row. |
Merge |
|
Merge |
|
Move |
|
Open |
Invokes an in-place editor for the specified cell. |
Refresh |
Updates the grid’s data. |
Restore |
Restores the grid’s layout from the specified stream. |
Restore |
Restores the grid’s layout from the specified XML string. |
Save |
Saves the grid’s layout to the specified stream. |
Save |
Saves the gird’s layout to an XML string. |
Scroll |
|
Scroll |
|
Scroll |
Scrolls the grid to make the specified row visible. |
Set |
Assigns a value to the specified cell. |
Set |
Assigns a value to the specified cell. |
Sort |
Sorts data by values of the specified column in the specified order, and places the column at the specified position among the sorted columns. |
Sort |
Sorts data by values of the specified column in the specified order. |
Sort |
Sorts data by values of the specified column in ascending order. |
Sort |
Sorts data by values of the column bound to the specified data field in the ascending order. |
#Events
Name | Description |
---|---|
Auto |
Occurs each time an individual column is generated automatically. |
Calculate |
Allows you to specify a custom rule to calculate data summaries. |
Complete |
Occurs after the drag-and-drop operation is completed. |
Custom |
Occurs before a data cell is painted. |
Customize |
Allows you to provide a custom display text for any data cell. |
Custom |
Enables you to populate unbound columns with data, and save changes that users made in unbound columns. |
Double |
Occurs when a user double taps the grid. |
Drag |
Occurs when users touch and hold a data row to drag it. |
Drag |
Occurs each time a row is over another row when being dragged. |
Drop |
Occurs when users drop a row. |
Group |
Occurs after a group of rows has been collapsed. |
Group |
Occurs before a group of rows is collapsed. |
Group |
Occurs after a group of rows has been expanded. |
Group |
Occurs before a group of rows is expanded. |
Load |
Occurs when a user scrolls to the bottom of the grid to load new data items. |
Long |
Occurs when a user taps and holds anywhere within the grid. |
Pull |
Occurs when a user pulls the grid down to refresh its content. |
Selection |
Occurs after the selected row has been changed in the grid. |
Showing |
Fires when a cell editor is about to be displayed and allows you to cancel the action. |
Swipe |
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. |
Tap |
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). |
Validate |
Occurs after a user changes a cell value in the in-place editor and attempts to select another cell. |
Validation |
Occurs when a value in the in-place cell editor fails validation or when it cannot be saved to a data source. |
See Also