Copy Data From One Gridview To Another In C Sharp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kinannawaz
    New Member
    • Dec 2007
    • 20

    Copy Data From One Gridview To Another In C Sharp

    I have two datagridviews

    datagridview1.
    datagridview2

    datagridview1 contains data.
    datagridview2 is empty.

    WHAT I AM TRYIING TO DO is
    when a row in datagridview1 is clicked (row enter) then that row will be copied in datagrid view 2.
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    Make a second DataTable and bind it to the second DataGridView. So, in your first DataGridView, when the selected index changes, copy the corresponding row into the new DataTable.

    Comment

    Working...