根据网格中的文件类型显示图标 [英] Displaying icon according to a file type in a grid

查看:111
本文介绍了根据网格中的文件类型显示图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将文档库绑定到网格视图,我想根据文件类型显示每种文件类型的图标,即ppt的图标(如果上载的文件是ppt类型的),我如何显示该图标

I am binding a document library to a grid view ,i want to display the icon for each file type depending upon the type of file,ie icon of ppt if the uploaded file is of type ppt,how can i show the icon along with the file?

推荐答案

将该列绑定到DocIcon字段.它包含在文档库的默认所有文档"视图中.

http://msdn.microsoft.com/en-us/library/microsoft. sharepoint.spbuiltinfieldid.docicon.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/ms463701.aspx [ ^ ]
Bind the column to the DocIcon field. It is included in the default All Documents view for Document Libraries.

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbuiltinfieldid.docicon.aspx[^]

http://msdn.microsoft.com/en-us/library/ms463701.aspx[^]


这篇关于根据网格中的文件类型显示图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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