I was customizing list view web parts to meet our reqs. What I did was:
- Instantiate ListViewWebPart in another web part
- Set web (reflection), webid and list id
- add ListViewWebPart to Controls collection of web part
However there are few discrepancies in behavior of standart list view web part and our web part
- paging not working
- if i add 2 or more web parts on the same page and on one apply the filter/sorting this is also populated to other web parts on the page. If the web part list does not contain the field it fails to render.
Anyone met with this behavior?
Thanks
ListViewWebPart
, or aboutXsltListViewWebpart
?ListViewWebPart
is old 2007-style web part, SharePoint 2010 usesXsltListViewWebPart
to render list views, try to use it.