如何从gridview获取记录并通过标签显示其他面板中的记录 [英] how to fetch record from gridview and display records in other panel byseting as label

查看:69
本文介绍了如何从gridview获取记录并通过标签显示其他面板中的记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何One Tell ??

如何从gridview获取记录并通过标签显示其他面板中的记录

Thnkx

can any One Tell??
how to fetch record from gridview and display records in other panel byseting as label
Thnkx

推荐答案

如果你想从gridview获取数据,你可以从用于将它绑定到gridview的数据源中获取。 br />
现在,你有了数据。 ;)



因为你想将这些数据显示在标签上(如果我没有记错的话),你可以遍历你的数据源(使用循环)&设置为它。



您可以使用 FindControl [ ^ ]从面板中查找标签的方法。



希望你有这个想法。



-KR
If you want to fetch the data from gridview, you can get that from the datasource you've used for binding it to the gridview.
So now, you have the data. ;)

And as you want to display this data into the label (if I'm not mistaken), you can iterate through your datasource (using loops) & set to it.

You can use FindControl[^] method for finding the label from your panel.

Hope you got the idea.

-KR


这篇关于如何从gridview获取记录并通过标签显示其他面板中的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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