Listview wepart creation using visual studio RRS feed

  • Question

  • Hi,

       I want to create a Listview webpart and want to deploy it to SP 2010. How can I do this .Please give an explanation from basic. I have created one empty sp project and added one webpart.

    • Edited by Hari nvp Thursday, July 5, 2012 10:53 AM improved
    Thursday, July 5, 2012 10:08 AM


All replies

  • Hi hari,

    You can create a SharePoint 2010 project, add a visual web part, then add the code to the VisualWebPart1.cs to create the listview web part and  by using the XsltListViewWebPart if you want to show the Add new item tool.

    Here is a similar issue that I have test on my local server and it works fine, please refer to: http://social.technet.microsoft.com/forums/en-us/sharepoint2010programming/thread/681203B8-7232-4ABC-9DB2-962EC7BE2473

    Please check it, if there is any problem, please feel free to let me know.

    Best Regards.

    Friday, July 6, 2012 3:03 AM
  • hi Yaoyao,

    i had this problem too,

    i'm trying to craete a threaded view for my forum,

    i never create view using visual studio! i always use sharepoint views!

    can you help me please??!


    Thursday, September 13, 2012 4:15 PM