如果我使用多个gridview,如何获取网格绑定值. [英] How to get the grid bind values if i use multiple gridview..

查看:59
本文介绍了如果我使用多个gridview,如何获取网格绑定值.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有两个gridview.第二个gridview放置在firstgrid视图内.

当我绑定第二个网格时,我想获取第一个gridview绑定值...

怎么可能...?

谢谢...

Hi,

I have two gridview. the second gridview placed inside the firstgrid view.

When i bound the second grid, i want to get the first gridview bound values...

How it is possible...?

Thanks...

推荐答案

您如何将第二个网格放置在第一个网格中,以及如何显示它们?
如果要在第一个GridRowDataBoundRow Command上显示项目,则可以从GridViewRow 或从EventArgs Item来获取绑定值.
检查RowDataBound的详细信息 [
How did you placed the Second Grid inside first grid and how are you showing them ?
If you are displaying the item on first GridRowDataBound, or Row Command you can get the bound value from GridViewRow or fro EventArgs Item.
Check Details of RowDataBound[^]


尝试此链接

绑定嵌套Gridview [
try this link

Bind Nested Gridview[^]


这篇关于如果我使用多个gridview,如何获取网格绑定值.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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