如何在网格视图中动态创建标签

问题描述:

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

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 :)