如何将网格选定的行值发布到不同的控制器并在那里显示行数据 [英] How to post web grid selected row value to different controller and display the rows data there

查看:59
本文介绍了如何将网格选定的行值发布到不同的控制器并在那里显示行数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将网格选中的行值发布到不同的控制器并显示那里的行数据



如何将所有选中的行值发送到不同的控制器并显示第二个视图中的数据



我尝试过:



i is able获取网格中的数据但无法前进

解决方案

使用onRowCommand。在e.CommandArgument上,你将获得特定行的id,你可以获取特定行的所有数据然后用来绑定任何控件



这个链接将帮助你更多

https://www.codeproject.com/Questions/1041167/How-to-show-data-of-grid-view-in-page-at-the-click [ ^ ]

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

解决方案

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[^]


这篇关于如何将网格选定的行值发布到不同的控制器并在那里显示行数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆