// fixme: how to trigger this at startup? // how to have a two-way syncronized value? so that the datagrid reads this value instead of the opposite public void updateShowColumns(ShowColumns showColumns) { if (this.CDG_ParentSelector != null) { this.CDG_ParentSelector.updateShowColumns(showColumns); } else { var i = 9; // warn user? } }
private void LoadView(List list) { Context.Load(list.Fields); // Get required view by specifying view Title here var targetView = list.Views.GetByTitle(ViewTitle); Context.Load(targetView, x => x.ViewFields); Context.ExecuteQuery(); // Get all columns need to show var fields = list.Fields.Where(x => ShowColumns.Contains(x.InternalName)).ToList(); // Loop for each site column and add to view foreach (var item in fields) { targetView.ViewFields.Add(item.InternalName); } targetView.Update(); }
public virtual void Visit(ShowColumns node) { VisitInternal(node.Table); VisitInternal(node.Where); }
public void Visit(ShowColumns node) { TableMetaRead(node.Table); }