在gridview标头中添加图像按钮 [英] Add image buttons in the gridview header
本文介绍了在gridview标头中添加图像按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨..........
我正在尝试在gridview标头中添加img按钮,以便为datasort.columns中的dyanmically添加网格.providesoln.thanx
hi..........
I am trying to add img buttons in gridview header for datasort.columns in the grid added dyanmically.provide soln.thanx
推荐答案
尝试
<asp:TemplateField HeaderText="<img src='.../...' alt='my image' />">
....
</TemplateField>
You can also look at http://theruntime.com/blogs/thomasswilliams/archive/2005/11/09/adding-a-sort-direction-image-to-a-gridviews-header.aspx.
检查以下链接:
ASP.NET GridView排序指示器组件 [带有上下图标的Gridview排序,分页 [ ^ ]
Check following links:
ASP.NET GridView Sort Indicator Component[^]
Gridview Sorting with Up and Down Icons, Paging[^]
请通过以下链接
http://www.sitepoint.com /forums/showthread.php?472866-GridView-Sort-Issue-%96-Display-image-in-Header
http: //blogs.msdn.com/b/scothu/archive/2010/08/28/gridview-with-sort-arrows-and-showing-header-when-empty.aspx
带有Freeze标头和图像排序的可滚动Gridview.
Please go through these links
http://www.sitepoint.com/forums/showthread.php?472866-GridView-Sort-Issue-%96-Display-image-in-Header
http://blogs.msdn.com/b/scothu/archive/2010/08/28/gridview-with-sort-arrows-and-showing-header-when-empty.aspx
Scrollable Gridview with Freeze header and sort image.
这篇关于在gridview标头中添加图像按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文