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

DataGridView.ClearSelection Method

 

Cancels the selection of currently selected cells.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

NameDescription
System_CAPS_pubmethodClearSelection()

Clears the current selection by unselecting all selected cells.

System_CAPS_protmethodClearSelection(Int32, Int32, Boolean)

Cancels the selection of all currently selected cells except the one indicated, optionally ensuring that the indicated cell is selected.

Return to top
Show:
© 2016 Microsoft