简体   繁体   English

网格视图内的网格视图

[英]Grid View inside Grid view

I have a master grid and a child grid which is one of the column of the master Grid and whose data is getting bound to datasource on rowDataBound of master grid view. 我有一个主网格和一个子网格,它是主网格的列之一,并且其数据已绑定到主网格视图的rowDataBound上的数据源。 Now the thing that I want is to get the value of one of the columns of the master grid on the row command of the child grid. 现在,我想要的是在子网格的row命令上获取主网格的某一列的值。 Is it possible in any way? 有可能吗?

Please suggest 请建议

Vikram 维克拉姆

在母版页网格的RowDataBound事件中(您已经在使用此事件),在子网格中获取对控件(按钮,链接按钮)的引用,并根据需要设置其CommandName和CommandArgument属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM