Пример #1
0
        protected override System.Web.UI.DataSourceView GetView(string viewName)
        {
            if (null == _view)
            {
                RefreshContextInfo();

                _view = new DataSourceView(this)
                {
                    Content         = this.Content,
                    MemberName      = this.MemberName,
                    FieldNames      = this.FieldNames,
                    QueryFilter     = this.QueryFilter,
                    QueryText       = this.Query,
                    ShowHidden      = this.ShowHidden,
                    Settings        = this.Settings,
                    FlattenResults  = this.FlattenResults,
                    DefaultOrdering = this.DefaultOrdering,
                    GroupBy         = this.GroupBy
                };

                _view.Selected += SnDataSourceViewSelected;
            }

            return(_view);
        }
Пример #2
0
 public void ResetView()
 {
     _view = null;
 }