将文件上传控件放置在gridview中 [英] Placing a file upload control inside a gridview
本文介绍了将文件上传控件放置在gridview中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨..
我不想在aspxgridview中包含文件上层控件.这是asp.net 2005中DevExpress的控件.
如果您有任何建议,请回答我.
Hi..
I wan''t to include file uploder control in aspxgridview. which is the control of DevExpress in asp.net 2005.
If u have any Suggesion Please answere me.
推荐答案
gridview可让您定义用于显示数据的模板,这意味着您可以在其中放置任何控件
A gridview lets you define a template for how data is shown, which means you can put any control in there you like.
查看以下在线示例:
http://search.devexpress.com/?q=upload&p=T4|P5|57&d=16
您还可以使用以下方法将示例轻松下载到计算机中:
http://community.devexpress.com/blogs/aspnet/archive/2008/07/30/codecentral-source-code-to-search-download-run-enterprise-cheat.aspx
Check out these online samples:
http://search.devexpress.com/?q=upload&p=T4|P5|57&d=16
You can also download the samples to your machine easily using this approach:
http://community.devexpress.com/blogs/aspnet/archive/2008/07/30/codecentral-source-code-to-search-download-run-enterprise-cheat.aspx
使用TemplateField列.
然后在Item Template中放置fileUpload控件.
Use TemplateField column.
And in the Item Template put fileUpload control.
<asp:TemplateField>
<ItemTemplate>
<asp:FileUpload ID="FileUpload1" runat="server" />
</ItemTemplate>
</asp:TemplateField>
这篇关于将文件上传控件放置在gridview中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文