none
SharePoint 2010 Data View Webpart (DVWP)- Sort functionality

    Question

  • Can I give the user Sort and Group functionality when I use Data View Webpart to show the items from different lists?

    Advanced thanks for the help.

    Thursday, May 26, 2011 1:26 PM

Answers

  • We have an option directly in the SharePoint Designer 2010, under Design tab to select the Sort and Filter Headers. By choosing that option the headers of the DVWP got that functionality.

    • Marked as answer by Lily Wu Thursday, June 02, 2011 3:30 PM
    Thursday, May 26, 2011 9:25 PM

All replies

  • AparnaT,

    Dataview web parts use xsl to form XML into tables and rows.  This can also be used to sort the content. You can add code at a ASPX page in designer.  This question has been answered before.  Here is the post link were it was answered.

    http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/a4ca9846-af9d-414f-ae4c-c90277062245

    Good luck,

    Gary


    Gary Newman MCSE, MCT, CCNA MCDBA, MCAD, MCSA MCTS SharePoint 2007 Dev & Admin MCPD SharePoint 2010 Development
    Thursday, May 26, 2011 2:24 PM
  • We have an option directly in the SharePoint Designer 2010, under Design tab to select the Sort and Filter Headers. By choosing that option the headers of the DVWP got that functionality.

    • Marked as answer by Lily Wu Thursday, June 02, 2011 3:30 PM
    Thursday, May 26, 2011 9:25 PM
  • In SP2010 actually all List View's are technically data view web parts. So DVWP's have all capabilities of the LVWP (both are XsltListViewWebPart in 2010). As AparnaT said you can add the sort/filter easily to any DVWP using SPD.
    My CodePlex - My Blog - My Twitter
    Thursday, May 26, 2011 10:40 PM