Member Avatar for Rahul47

Hey hie fellas, here is my problem.
I have two DataGridViews in one form. What I wanted to accomplish is transfer one row at a time from Left Grid to Right Grid on selection.

I wanted to Select Cell in Left Grid then Press Button Upon Which selected row should be added in Right Gird.

I also Want to check if Data is Not duplicated in Right grid.

Also When I Select Row From Right grid I Should be able to Delete It.

I am adding Snapshot of My Application.
d197354bcddff152e3d4d90907fbd861

Is the dgv StudentList backed by a datatable? If so, add a boolean column (call it Selected)to the datatable then create two dataviews. Then create two dataviews filtered on the new column being either true (Selected) or false and use the dataviews as the datasource for the respective datagridviews. Then you only need to set the Selected field in your botton's click handler.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.