This ia two years late. But, thanks for the usefull tip. One thing I relealized, is that you require elivated privileges to do this (atleast in my applicaiton).
SPSecurity.RunWithElevatedPrivileges(delegate() { List = new SPSite(list.ParentWeb.Site.ID).AllWebs[list.ParentWeb.ID].Lists[list.ID]; });
This ia two years late. But, thanks for the usefull tip. One thing I relealized, is that you require elivated privileges to do this (atleast in my applicaiton).
ReplyDeleteSPSecurity.RunWithElevatedPrivileges(delegate()
{
List = new SPSite(list.ParentWeb.Site.ID).AllWebs[list.ParentWeb.ID].Lists[list.ID];
});
this.dgvList.DataSource = List.Items.GetDataTable();
Shrini Viswanathan