If the DataGridView is bound to any datasource, you'll have to set the DataGridView's DataSource property to Nothing. If the DataGridView is not bound to any data source, this code will do the trick: DataGridView.Rows.Clear().
VB.NET DataGridView - Right Click To Delete Row[ With ContextMenu] - Duration: 12:36.
Delete the selected row from datagridview. Posted 26 July 2009 - 06:11 PM.
The DataGridView control is designed to be a complete solution for displaying tabular data with Windows Forms.
Selecting grid rows and clear selected rows for C# DataGridView, set current rows for C# GridView in WinForms Applications.
Net Set Selected row items to TextBoxes- row selection,cell items,add,rows, columns,update.
These VB.NET examples use DataGridView from Windows Forms. They show event handlers and properties.
02) Drag a DataGridView control and drop it on the Panel. Name the DataGridView as DGVParent. Set the grid’s Drop property as Fill.
Delete multiple rows from DataGridView based on CheckBox selection in Windows Forms Application using C# and VB.Net Here Mudassar Ahmed Khan has explained how to delete (remove) multiple selected rows with confirmation from DataGridView based on CheckBox selection in Windows...