在DATAGRID模版列中,对数据绑定是这样做的
<asp:Templatecolumn HeaderText="content">
<itemTemplate>
<%# getstring(DataBinder.Eval(Container.DataItem,"content","{0}"),100)%>
</itemtemplate>
</asp:Templatecolumn>
但以编程方式实现DATAGRID时,该怎么写呢
<asp:Templatecolumn HeaderText="content">
<itemTemplate>
<%# getstring(DataBinder.Eval(Container.DataItem,"content","{0}"),100)%>
</itemtemplate>
</asp:Templatecolumn>
但以编程方式实现DATAGRID时,该怎么写呢
解决方案 »
- ******************问一个反码的问题********************
- .net树控件点击展开和关闭的问题
- VS2008 母版中使用JS取值的问题
- 我在GridView中分页怎么成这样的效果了
- 请教一个DATAGRID中ITEMS.COUNT的问题
- 如何在treeview上增删节点(紧急求助)
- 数据一次性的载入,怎么实现无刷新联动?
- 请教如何用隐藏字段(HtmlInputHidden)在不同页间传递参数
- Crystal Reports的问题
- 小弟提个超菜鸟级问题:)
- 请问如何使用ASP.NET实现网络硬盘的功能.
- 程序写好之后如使用像网上的程序一样,只剩dll和.aspx文件
再對該lable賦值就可以了