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?

3

1 Answer 1

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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