Ejemplo n.º 1
0
        protected override void CreateChildControls()
        {
            dataSource = new SearchDataSource()
            {
                QueryText = "contentclass:spspeople"
            };
            dataSource.ID = "datasource";
            this.Controls.Add(dataSource);

            gridview = new GridView();
            gridview.DataSourceID        = dataSource.ID;
            gridview.AllowPaging         = true;
            gridview.AllowSorting        = true;
            gridview.AutoGenerateColumns = true;
            this.Controls.Add(gridview);
        }
Ejemplo n.º 2
0
 public SearchDataSourceView(SearchDataSource dataSource) : base(dataSource, "")
 {
     this.dataSource = dataSource;
 }