Click here to Skip to main content
16,019,151 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how to post web grid selected row value to different controller and display the rows data there

how to send all the selected rows value to different controller and display the data in 2nd view

What I have tried:

i am able to get the data in web grid but unable to go forward
Posted

1 solution

Use onRowCommand. on e.CommandArgument you will get the id for perticular row using that you can fetch all data of perticular row and then use to bind any control

This link will help you more
https://www.codeproject.com/Questions/1041167/How-to-show-data-of-grid-view-in-page-at-the-click[^]
 
Share this answer
 
v2
Comments
Member 12300401 5-Feb-16 2:33am    
i want to post the selected row data to Controller
asplover1 5-Feb-16 2:48am    
then take session
Member 12300401 5-Feb-16 5:45am    
grid.Column(columnName: "Action", format: (item) => Html.ActionLink("Manage Goals", "Managaekrasgoals", "ManageKrasGoals"))

unable to get data in controler
Member 12300401 6-Feb-16 10:18am    
can you resolve this
Member 12300401 8-Feb-16 0:05am    
grid.Column(columnName: "Action", format: (item) => Html.ActionLink("Manage Goals", "Managaekrasgoals", "ManageKrasGoals"))

unable to get data in controler

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