I have multiple SharePoint lists and want to display data from them on to a gridview control.
Please guide me.
Grace
I have multiple SharePoint lists and want to display data from them on to a gridview control.
Please guide me.
Grace
Two options that I can think of:
Your question inspired me to develop a web part that demonstrates:
It can be found on CodePlex here. Some of it is a little rough but it should be enough to show you the basics. It demonstrates the following query types:
There is code for using the search engine but this isn't wired up to the web part itself yet.
I hope it helps you. If you try it and have problems please use the CodePlex site to get support from me.
With SharePoint 2007 you can use CrossListQueryCache and CrossListQueryInfo. More information here.