Ejemplo n.º 1
0
 //BoundControl_DataBound方法利用HasParentControlCalledDataBinding检查是否已经创建了Builder,
 //如果是,则不再执行寻找适当Builder的操作。Adapters表的初始化在构造函数中完成:
 public CommonPager()
 {
     SelectedPager = new System.Web.UI.WebControls.Style();
     UnselectedPager = new System.Web.UI.WebControls.Style();
     _adapters = new AdapterCollection();
     _adapters.Add(typeof(DataTable), new DataTableAdapterBuilder());
     _adapters.Add(typeof(DataView), new DataViewAdapterBuilder());
 }
Ejemplo n.º 2
0
        //BoundControl_DataBound方法利用HasParentControlCalledDataBinding检查是否已经创建了Builder,

        //如果是,则不再执行寻找适当Builder的操作。Adapters表的初始化在构造函数中完成:

        public CommonPager()
        {
            SelectedPager   = new System.Web.UI.WebControls.Style();
            UnselectedPager = new System.Web.UI.WebControls.Style();
            _adapters       = new AdapterCollection();
            _adapters.Add(typeof(DataTable), new DataTableAdapterBuilder());
            _adapters.Add(typeof(DataView), new DataViewAdapterBuilder());
        }