DataGridView Methods
A data grid view.
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. |
See Also