Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

How to get list of values that are used in list view grouped by

$
0
0

I am trying to create  a dynamic tabs on the fly based on values from grouped by field in document library.

Is there a way to get and enlist these values into ex. array.

Thanx

 
SPSecurity.RunWithElevatedPrivileges(delegate()
                {
                    using (SPSite oSiteCollection = new SPSite(ptw.GetSiteURL))
                    {
                        using (SPWeb oWebsite = oSiteCollection.OpenWeb())
                        {                           
                            try
                            {                                
                                SPList list = oWebsite.Lists[ptw.getLibrary];
                                SPView oView = list.Views[ptw.getViewName];

 //XmlDocument groupDoc = new XmlDocument();
                                    //groupDoc.LoadXml(string.Format("<Query>{0}</Query>", oView.Query));
                                    //XmlElement groupBy = (XmlElement)groupDoc.SelectSingleNode("//GroupBy");
                                    //string h = groupDoc.FirstChild.InnerXml;


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>