Skip to main content
A newer version of this page is available. .

DataGridView Methods

A data grid view.
Name Description
BeginUpdate()
ClearFilter() Clears the filter applied to data in the grid.
ClearGrouping() Ungroups data in the grid.
ClearSorting() Clears the sorting applied to the grid.
CloseEditor(Boolean) Closes a cell in-place editor.
CollapseAllGroups() Collapses all groups of rows.
CollapseGroupRow(Int32) Collapses the specified group of rows.
DeleteRow(Int32) Deletes the specified data row.
EndUpdate()
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
ExpandAllGroups() Expands all groups of rows.
ExpandGroupRow(Int32) Expands the specified group of rows.
FindRow(Predicate<IRowData>) Returns the handle of the first row that matches the specified criteria.
FindRowByValue(String, Object) Searches for the value in the column and returns the handle of the corresponding row.
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) Gets the value of the specified cell.
GetCellValue(Int32, String) Gets the value of the specified cell.
GetGroup(Int32) Provides access to the information on the specified group of rows.
GetGroupRowValue(Int32) Gets the value of the specified group row.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetParentRowHandle(Int32) Returns the group row handle that identifies the group to which the specified data row belongs.
GetRow(Int32) Gets an object that provides access to the data of the specified row.
GetRowHandle(Int32) Returns the handle of the row that corresponds to the specified record in the data source.
GetRowHandleByVisibleIndex(Int32)
GetSourceRowIndex(Int32) Gets the index of the data source record to which the specified row handle corresponds.
GetType() Gets the Type of the current instance. Inherited from Object.
GetVisibleIndexByRowHandle(Int32)
GroupBy(GridColumn) Groups data in the grid by the specified column.
GroupBy(String) Groups data in the grid by the specified column.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
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 Object.
ScrollToRow(Int32) Scrolls the grid to make the specified row visible.
SetCellValue(Int32, GridColumn, Object) Assigns a value to the specified cell.
SetCellValue(Int32, String, Object) Assigns a value to the specified cell.
SortBy(GridColumn, ColumnSortOrder, 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(GridColumn, ColumnSortOrder) Sorts data by values of the specified column in the specified order.
SortBy(GridColumn) Sorts data by values of the specified column in ascending order.
SortBy(String) Sorts data by values of the column bound to the specified data field in the ascending order.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also