C# Windows Form

Remove Multiple Selected Rows From DataGridView in C#

In this example, we’ll learn how to programatically delete multiple selected rows from a datagridview with Remove Method.

Step 1: Add a button and datagridview to Form.

Step 2: Go to the properties window by clicking on the dataGridView control. Change the SelectionMode to FullRowSelect property of the dataGridView control or add the following code to Form_Load event.

Step 3: Add code in Form_Load event

Step 4: Add Code in Button1_Click

 

 

1 Comment

Leave a Comment

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