Question

I'm trying to roll data from multiple lists into one web part using Visual Studio, preferably a Visual Web Part. I want it to look like a normal SharePoint list view, with options to sort, filter, and group (and select an item with inline checkbox if possible). I've gotten close using SPGridView, but setting AllowFiltering and AllowSorting didn't make filtering/sorting appear. SPListView has the look I want, but I could only get it to bind to one list.

What class would be the best starting point, and should use a visual web part or basic web part?

Was it helpful?

Solution

SPGridView can be customised to make it look similar to list view.

For filtering and sorting you need to code and handle OnSorting and OnFiltering events.

http://www.c-sharpcorner.com/UploadFile/b8e86c/pagination-sorting-and-filtering-in-spgridview/

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top