Copy Selected Row From DataGridView1 to DataGridView2 in C# – Programming, Pseudocode Example, C# Programming Example
C# Windows Form

Copy Selected Row From DataGridView1 to DataGridView2 in C#

In this example, We’ll learn how to copy selected rows of one datagridview to another datagridview on Button Click.

Step 1: Form1 Design

Step 2: Go to the properties window by clicking on the dataGridView1 control. Change the SelectionMode to FullRowSelect property of the dataGridView control. 

Step 3: Add the following code to Form_Load event.

Step 4 : Add the following code to Button1_Click.

Finally:

Leave a Comment

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