DekGenius.com
[ Team LiB ] Previous Section Next Section

DataGridPagerStylemarshal by reference, disposable

System.Web.UI.WebControls (system.web.dll)sealed class

This class represents a special style class derived from TableItemStyle that allows you to configure the pager controls for the DataGrid control. It is provided through the DataGrid.PagerStyle property. Pager controls (special links that allow you to see one "page" of data at a time) are displayed in a separate row at the bottom of the table, provided you have enabled the DataGrid.AllowPaging property.

Aside from setting the standard style properties, you can also use the Mode property to configure the type of pager buttons used (multiple numeric or previous/next). If you are using previous/next buttons (PagerMode.NextPrev), you can also set the associated text for the links using the NextPageText and PrevPageText properties (which default to the < and > signs). If you use numeric link buttons (PagerMode.NumericPages), you can also set the maximum number of links that will be displayed at a time through the PageButtonCount property. If there are more pages than specified in this property, a link with ellipses (...) is automatically displayed in the pager row, which allows the user to show the next or previous set of numeric links.

public sealed class DataGridPagerStyle : TableItemStyle {
// Public Instance Properties
   public PagerMode Mode{set; get; }
   public string NextPageText{set; get; }
   public int PageButtonCount{set; get; }
   public PagerPosition Position{set; get; }
   public string PrevPageText{set; get; }
   public bool Visible{set; get; }
// Public Instance Methods
   public override void CopyFrom(Style s);         // overrides TableItemStyle
   public override void MergeWith(Style s);        // overrides TableItemStyle
   public override void Reset( );                    // overrides TableItemStyle
}

Hierarchy

System.Object System.MarshalByRefObject System.ComponentModel.Component(System.ComponentModel.IComponent, System.IDisposable) Style(System.Web.UI.IStateManager) TableItemStyle DataGridPagerStyle

Returned By

DataGrid.PagerStyle

    [ Team LiB ] Previous Section Next Section