Deselect all selected rows in DataGridView

datagridview

To deselect all rows and cells in a DataGridView, use ClearSelection method.

For Example:

dgvpayment.ClearSelection();

Anu

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.