Site icon Student Project Guidance & Development

Deselect all selected rows in DataGridView

DataGridView

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

For Example:

dgvpayment.ClearSelection();

Exit mobile version