如何在另一个表格的gridview内的标签上显示文字? [英] how to display text on a label inside gridview from another table?

查看:81
本文介绍了如何在另一个表格的gridview内的标签上显示文字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个gridview,其中我正在显示表格中的文本,在我的上一栏的页脚模板中,我想从另一个表格中导入数据。

i have a gridview in which i m displaying text from a table, in my last column''s footer template i want to import data on a label from another table.

推荐答案

您好,



在rowdatabound上找到页脚模板,在页脚模板中找到所需的标签,然后为标签赋值。
Hi,

On rowdatabound find footer template, in footer template find the required labels then assign values to the label.


那么问题是什么?

您需要自己尝试一下。请按照以下步骤(在Google上搜索其他问题。):

转到 GridView RowDataBound 事件C $ C> - >检查页脚项目 - >找到标签控件 - >设置该标签控件的文本(如果有的话,放置条件)。





--Amit
What is the issue then?
You need to try it by yourself. Follow the steps below(Search Google for other issues.):
Go to the RowDataBound event of GridView --> check for the footer item --> find the label control --> set the text of that label control(Put the conditions here if any).


--Amit

MSDN可以帮到你!只是尝试越来越多!
MSDN could help you!Just try it more and more!


这篇关于如何在另一个表格的gridview内的标签上显示文字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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