Skip to main content

Posts

Showing posts from December, 2015

SharePoint Gridview Multi Column filtering and sorting.

SharePoint OOTB grid view allows us to perform multiple filtering and sorting. But when you create a custom solution with SPGridview then implementing multi column filter and sorting is a bit tricky. After a good amount of goggling I found two reliable solutions. Below are two links that helped me as solution. 1.       http://sharethefrustration.blogspot.in/2010/02/spgridview-webpart-with-multiple-filter.html 2.       https://gallery.technet.microsoft.com/office/Multi-Column-Filter-and-6765a863 I used 2 nd link in my solution. Let’s implement an example. Add below code to your designer page. Lets start creating an demo. 1.       Create a new SharePoint Project. 2.       Add a visual webpart into it. 3.       Add html code to create SPGridview.(you can take below code as well) < SharePoint : SPGridView runat ="server" ID ="gvDemo" AutoGenerateColumns ="false" DataSourceID ="gridds"     AllowFilter