如何在另一个gridview内的gridview中捕获数据 [英] how to capture the data in a gridview inside another gridview

查看:99
本文介绍了如何在另一个gridview内的gridview中捕获数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我有以下要求,请任何机构有这种要求来完成功能让我知道,它可能对我有帮助。



请下载此图片以便更好地理解。



http://plus.im/uploaded/1374471188458687/Gridview-in%20Gridview.bmp [ ^ ]

在单个网格中必须显示(标题)行)学校名称和标记



(模板行)ShoolName,(下拉列表)学生姓名和选择的学生标记需要捕获Sub1,Sub2和Sub3。





在此先感谢....

Dear All,

Am having this below requrement, please any body have this kind of requirement to complete the functionality let me know, its may helpful to me.

Please download this image for better understanding.

http://plus.im/uploaded/1374471188458687/Gridview-in%20Gridview.bmp[^]
In a Single grid have to show (Header Row) School Name and Marks

(Template Row) ShoolName, (dropdown)Student Name and seleted Student Marks need to capture Sub1, Sub2 and Sub3.


Thanks in Advance....

推荐答案

据我理解的问题,你想跨越标题行。参考这些链接。



合并GridView标题列多个标题ASP.NET [ ^ ]



合并GridView标题列多标题ASP .NET [ ^ ]



问候......:笑:
As per i understand the question,you want to span header rows.Refer to these links.

Merge Merging GridView Header Columns Multiple Headers ASP.NET[^]

Merge GridView Header Columns Multiple Headers ASP.NET[^]

Regards..:laugh:






我很抱歉,你知道如何在gridview中使用模板结构..



使用这样的



string str =((TextBox)((GridView)grdStudent.FindControl(grdSub))。FindControl(Sub1))。文字;

<这里是


grdStudent是你的主要网格,grdSub是你进入grdStudent的内部网格....



它是基于模板的结构到Gridview ...
Hey

I gussed, u know about how to use template structure into gridview..

Use like this

string str= ((TextBox)((GridView)grdStudent.FindControl("grdSub")).FindControl("Sub1")).Text;


here grdStudent is your main grid and grdSub is your inner grid into grdStudent....

It's template based structure into Gridview...


这篇关于如何在另一个gridview内的gridview中捕获数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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