Skip to main content

GridViewSettings.StylesPager Property

Provides access to the style settings that control the appearance of the Pager displayed within the GridView.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v25.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public GridViewPagerStyles StylesPager { get; }

Property Value

Type Description
GridViewPagerStyles

A GridViewPagerStyles object that provides style settings used to paint a pager.

Remarks

The following example sets the page number color to brown:

@Html.DevExpress().GridView(settings => {
    settings.Name = "gvPaging";
    settings.Columns.Add("ContactName");
    settings.Columns.Add("CompanyName");
    settings.Columns.Add("Country");
    settings.KeyFieldName = "CustomerID";
    settings.CallbackRouteValues = new { Controller = "PagingAndScrolling", Action = "PagingPartial" };
    settings.StylesPager.PageNumber.ForeColor = Color.Brown;
    settings.StylesPager.CurrentPageNumber.ForeColor = Color.Brown;
}).Bind(Model).GetHtml()
See Also