ClearSelection Method
Collapse the table of content
Expand the table of content

DataGridView.ClearSelection Method

Cancels the selection of currently selected cells.

Name Description
DataGridView.ClearSelection () Clears the current selection by unselecting all selected cells.
DataGridView.ClearSelection (Int32, Int32, Boolean) Cancels the selection of all currently selected cells except the one indicated, optionally ensuring that the indicated cell is selected.

Community Additions

© 2015 Microsoft