Hello
i want to make two gridview DevExpress
to Move item from gridview to another gridview
and move all from gridview1 to another
please how i do it ?!!
Hello
i want to make two gridview DevExpress
to Move item from gridview to another gridview
and move all from gridview1 to another
please how i do it ?!!
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jayraj ChhayaRank #304 · 8.2K reputationPosted Mar 31, 2024, 10:32 AM EDT
To move items between two DevExpress GridViews in C#, you can achieve this functionality by handling the transfer of items programmatically. Here's a general outline of how you can accomplish this:
Moving Items Between GridViews:
Moving All Items from One GridView to Another:
Below is a simplified example to demonstrate moving items between two DevExpress GridViews:
// Move selected item from GridView1 to GridView2 var selectedItem = gridView1.GetSelectedRows().FirstOrDefault(); if (selectedItem != null) { var data = gridView1.GetRow(selectedItem); gridView2.Add(data); gridView1.Remove(data); } // Move all items from GridView1 to GridView2 foreach (var item in gridView1.GetItems()) { gridView2.Add(item); } gridView1.ClearItems();