How we can copy one or more than one rows from a data grid view to other data grid view on same form. Here, I’ve searching option which search from the first grid and if found some matching rows then copy them to 2nd grid. How I can achieve this ?
Share
You can do something like this:
Now the Datatabledt is available in Clipboard which you can paste in the second gridview which you can do with this:
EDIT:
For one or more rows you can achieve that with looping through selected rows.
EDIT
This is the content in ConvertGridToTable