如何在网格视图中动态创建标签 [英] how dynamically create a LABEL IN GRID VIEW

查看:64
本文介绍了如何在网格视图中动态创建标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何动态创建标签视图中的标签

how dynamically create a LABEL IN GRID VIEW

推荐答案

我认为此linq将对您有所帮助.
http://www.codeproject.com/KB/grid/control_datagrid.aspx
I think this linq will help u.
http://www.codeproject.com/KB/grid/control_datagrid.aspx


请让自己更加清晰.

您可以使用Gridview的RowDataBound或RowCreated事件.
Please make yourself more Clear.

You can use the RowDataBound or RowCreated event of Gridview.


您需要在Gridview的GridView.OnRowCreated方法中放入一些控件创建逻辑.请查看下面的链接,该链接将帮助您实现它,

GridView.OnRowCreated方法 [
You would need to put some control creation logic inside the GridView.OnRowCreated Method of gridview. please see the link below which will help you to implement it,

GridView.OnRowCreated Method[^]

Hope it helps :)


这篇关于如何在网格视图中动态创建标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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