如果我使用多个gridview,如何获取网格绑定值. [英] How to get the grid bind values if i use multiple gridview..
本文介绍了如果我使用多个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...
推荐答案
您如何将第二个网格放置在第一个网格中,以及如何显示它们?
如果要在第一个GridRowDataBound
或Row 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 firstGridRowDataBound
, orRow Command
you can get the bound value fromGridViewRow
or froEventArgs
Item.
Check Details of RowDataBound[^]
尝试此链接
绑定嵌套Gridview [
try this link
Bind Nested Gridview[^]
这篇关于如果我使用多个gridview,如何获取网格绑定值.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文