The requested page is not available for the requested platform. You are viewing the content for Default platform.

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()
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.

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.

GetSourceRowIndex(Int32)

Gets the index of the data source record to which the specified row handle corresponds.

GroupBy(GridColumn)

Groups data in the grid by the specified column.

GroupBy(String)

Groups data in the grid by the specified column.

OpenEditor(CellIndex)

Invokes an in-place editor for the specified cell.

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)

Sorts data by values of the specified column in ascending order.

SortBy(GridColumn, ColumnSortOrder)

Sorts data by values of the specified column in the specified order.

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(String)

Sorts data by values of the column bound to the specified data field in the ascending order.

See Also