Click here to Skip to main content
16,010,650 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to transfer data from one grid to another grid in same page using onSelectIndexChange


when user click on button row should be transfer in another grid

plz help me to set condition
Posted

1. You can save data of both the Grid in Session object and in SelectindexChange you can add/remove records from session objects.
2 You can create 2 DataTable objects and can do Add/Delete in SelectIndexChange event.
 
Share this answer
 
Comments
Member 10694442 26-Mar-14 16:33pm    
ok i want to add data from one grid to another. thanx di
Member 10694442 26-Mar-14 16:49pm    
can you give me the link of example bcz i don't know concept of session
You can see the below link for session understanding:

http://msdn.microsoft.com/en-us/library/ms178581.aspx[^]

You can use below code to put data in the session:

C#
Session["data_1"] = object;


Thanks
 
Share this answer
 
Comments
Member 10694442 26-Mar-14 17:02pm    
thanx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900