Some code to add the ECB menu to the specified columns of a view: public void SetEcbColumnOnView(SPView view, List<string> internalNames) { if (view == null) throw new ArgumentNullException("view"); const string ListItemMenu = "ListItemMenu"; const string ViewFields = "ViewFields"; const string AttributeName = "Name"; XElement root = XElement.Parse(view.GetViewXml()); // Get all columns that […]
↧