This is a migrated thread and some comments may be shown as answers.

Selected row from radgrid to be inserted in another Radgrid

3 Answers 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
AHSAN
Top achievements
Rank 1
AHSAN asked on 28 Jan 2011, 07:40 PM
Hello there,

I am trying to implement the following,  select one row at a time from Radgid1, then add the selected row to another grid.
So, the user select a record from RadGrid1 then this row will be inserted in RadGrid 2.

Please direct me or provide some code, I really appreciate any help

Thank you so much

Sean 

3 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 28 Jan 2011, 09:56 PM
Hello Ahsan,

Have you looked at this online demo:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

It's about drag-and-drop, but the logic for moving an item from one grid to one is still the same.

I hope that helps.
0
AHSAN
Top achievements
Rank 1
answered on 31 Jan 2011, 04:43 PM
Hello Cori,

Thank you so much Cori for replying. The Demo you are referring to is much more complicated as compare to what I need. I only need access to the selected row. So, I don't need the selected row to be removed from the original grid. I just want to be able to add the selected row to another RadGrid. 

Please if you have any other idea,

Thanks again 
Sean
0
AHSAN
Top achievements
Rank 1
answered on 31 Jan 2011, 09:55 PM
Please I still need some help here,
I trying to insert the selected row from radgrid 1 into radgrid 2.

this is a sample of code 
            
lstEvent is a list of objects.

            lstEvent.Add(RadGrid2.SelectedValues);            
            RadGrid1.DataSource = lstEvent;
            RadGrid1.DataBind();

But RadGrid 1 is showing with no data 

thanks for any help.
Tags
Grid
Asked by
AHSAN
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
AHSAN
Top achievements
Rank 1
Share this question
or