Beispiel #1
0
 protected void PagerWork(int PageSize, System.Web.UI.WebControls.PagerMode pager, string CssClass, string NextPageText, string PrevPageText, int PageButtonCount, HorizontalAlign _HorizontalAlign)
 {
     MyDataGrid.PageSize                   = PageSize;
     MyDataGrid.PagerStyle.Mode            = pager;
     MyDataGrid.PagerStyle.CssClass        = CssClass;
     MyDataGrid.PagerStyle.NextPageText    = NextPageText;
     MyDataGrid.PagerStyle.PrevPageText    = PrevPageText;
     MyDataGrid.PagerStyle.PageButtonCount = PageButtonCount;
     MyDataGrid.PagerStyle.HorizontalAlign = _HorizontalAlign;
 }
Beispiel #2
0
 protected void PagerWork(int PageSize, System.Web.UI.WebControls.PagerMode pager, System.Drawing.Color BackColor, System.Drawing.Color BorderColor, System.Web.UI.WebControls.Unit BorderWidth, string MyClass, System.Web.UI.WebControls.Unit Height, System.Web.UI.WebControls.HorizontalAlign HorizontalAlign, string NextPageText, int PageButtonCount, System.Web.UI.WebControls.PagerPosition PagerPosition, string PrevPageText, System.Web.UI.WebControls.VerticalAlign VerticalAlign, bool Visible, bool Wrap)
 {
     MyDataGrid.PageSize                   = PageSize;
     MyDataGrid.PagerStyle.Mode            = pager;
     MyDataGrid.PagerStyle.BackColor       = BackColor;
     MyDataGrid.PagerStyle.BorderColor     = BorderColor;
     MyDataGrid.PagerStyle.BorderWidth     = BorderWidth;
     MyDataGrid.PagerStyle.CssClass        = MyClass;
     MyDataGrid.PagerStyle.Height          = Height;
     MyDataGrid.PagerStyle.HorizontalAlign = HorizontalAlign;
     MyDataGrid.PagerStyle.NextPageText    = NextPageText;
     MyDataGrid.PagerStyle.PageButtonCount = PageButtonCount;
     MyDataGrid.PagerStyle.Position        = PagerPosition;
     MyDataGrid.PagerStyle.PrevPageText    = PrevPageText;
     MyDataGrid.PagerStyle.VerticalAlign   = VerticalAlign;
     MyDataGrid.PagerStyle.Visible         = Visible;
     MyDataGrid.PagerStyle.Wrap            = Wrap;
 }
Beispiel #3
0
 protected void PagerWork(int PageSize, System.Web.UI.WebControls.PagerMode pager, System.Drawing.Color BackColor, System.Drawing.Color BorderColor, string MyClass)
 {
     this.PagerWork(PageSize, pager, Color.Gray, Color.Black, Unit.Pixel(12), MyClass, Unit.Pixel(12), HorizontalAlign.Right, "Next", 2, PagerPosition.Bottom, "Previous", VerticalAlign.Middle, true, true);
 }