MohamedEid

MohamedEid

  • 853
  • 693
  • 2.6k

How to obtain a data row and move it to another grid

Jun 22 2024 5:22 PM

I'm a beginner of C# users.
I'm using the DevExpress with C# Window Form Application.

I'm trying to move data from gridcontrol_1 to gridcontrol_2.

The gridcontrol_1 connected from MSSQL DB TableA.
I want to set DataTable same as gridcontrol_1 into gridcontrol_2. (like shipping cart)

If I select items from gridcontrol_1 then move to gridcontrol_2 by click event.
If I deselect items from gridcontrol_2 then move back to gridcontrol_2 by click event.
Finally, I want to save(insert) the gridcontrol_2 items to the SQL server TableB.

I don't know how to code what I want.

I found a video clip from youtube similarly I want to do.
But, the clip shows only DataGridView Control, not GridControl.


Answers (2)