Answered by:
Creating a web part to show the documents from SharePoint document libraries

Question
-
Hi All,
I need to create a web part to show the documents, in a share point's built in in view web part class object. Please suggest me which built in view web part class suits to display the document same as documents shown in the share point document libraries
thanks
AbdulHafeez
- Edited by Abdul_Hafeez Friday, January 13, 2012 12:54 PM
Friday, January 13, 2012 12:44 PM
Answers
-
Hi, share point ooB provide the ListViewWebPart try using that.
Anil- Marked as answer by Wayne Fan Monday, January 23, 2012 7:25 AM
Saturday, January 14, 2012 12:55 AM -
Hi Abdul,
You can use SPGridView for this purpose. It has the option of displaying menu items just as the ECB menu present in the OOTB.
The link below provides detailed steps to create ECB menu for a SPGridView
Also, you can write code to fetch data from multiple document libraries and bind it to the SPGridView.
Hope this helps !
- Marked as answer by Wayne Fan Monday, January 23, 2012 7:25 AM
Tuesday, January 17, 2012 3:39 AM -
Hi, you can display the to lists data in SPGridView as it accepts the datasource combine the two table from the lists and make a datasource and bind it to the grid,
Anil- Marked as answer by Wayne Fan Monday, January 23, 2012 7:25 AM
Tuesday, January 17, 2012 8:54 AM
All replies
-
Hi Abdul,
You can follow this link to show your document library item in web part
http://www.codeproject.com/KB/sharepoint/librarytreewebpart.aspx
Er.vinayFriday, January 13, 2012 1:17 PM -
Thanks for your link Vinay, but I am looking for the control that renders document library item in the same look and feel as it is for the Share- Point built in document libraries as shown below which has all option available.
thanks
AbdulHafeezFriday, January 13, 2012 2:18 PM -
You can drop web part of document library in any webpart zone. All the documents library have a webpart by default.
ShabihFriday, January 13, 2012 8:35 PM -
Hi, share point ooB provide the ListViewWebPart try using that.
Anil- Marked as answer by Wayne Fan Monday, January 23, 2012 7:25 AM
Saturday, January 14, 2012 12:55 AM -
As suggested by Anil, you can use ListView Webpart which is OOB webpart.
Saturday, January 14, 2012 8:49 PM -
Hi , open page where you want to show the document library , Edit that page click on the Add webpart page and in the pop up window select the document library from the "List and Libraries" section click on Add and you done.
AnilSunday, January 15, 2012 7:20 PM -
Thanks for all of you expert guys, I need to show multiple document libraries in a single list view.
can we do that?
AbdulHafeezMonday, January 16, 2012 2:37 PM -
Hi Abdul,
You can use SPGridView for this purpose. It has the option of displaying menu items just as the ECB menu present in the OOTB.
The link below provides detailed steps to create ECB menu for a SPGridView
Also, you can write code to fetch data from multiple document libraries and bind it to the SPGridView.
Hope this helps !
- Marked as answer by Wayne Fan Monday, January 23, 2012 7:25 AM
Tuesday, January 17, 2012 3:39 AM -
Hi, you can display the to lists data in SPGridView as it accepts the datasource combine the two table from the lists and make a datasource and bind it to the grid,
Anil- Marked as answer by Wayne Fan Monday, January 23, 2012 7:25 AM
Tuesday, January 17, 2012 8:54 AM