madatanic
madatanic

Reputation: 1790

Custom Web Part Connecting to Filter Web Part

I have built a custom web part using Visual Studio. Is it possible to use a SharePoint built-in Filter Web Part on top of my web part to filter the results?

Any thought or code sample would be appreciated.

Thanks.

Upvotes: 1

Views: 1295

Answers (1)

Ryan
Ryan

Reputation: 24422

SharePoints built in filter web parts are known as Filter Providers.

To allow you to connect those to your web part you need to make it a Filter Consumer by implementing an interface.

See MSDN - Writing a Simple Filter Consumer Web Part Sample

Upvotes: 3

Related Questions