3

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?

2

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/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.