System.Web.UI.WebControls Namespace DataGridPagerStyle Class
Sets or retrieves a value indicating whether the pager is displayed in a DataGrid control.
Inline |
<pagerstyle = [ true | false ]... > |
Script |
DataGrid.PagerStyle.Visible = [ true | false ] |
This property accepts or returns only a boolean value: true to display the pager; otherwise false. Default value is true.
Use the Visible property to specify whether the pager is displayed in a DataGrid control.
The following example demonstrates how to programmatically set the PagerStyle.Visible property at run time. This simple script dynamically shows or hides the pager based on the state of a CheckBox named chkHide.
if ( chkHide.Checked )
myGrid.PagerStyle.Visible = false;
else
myGrid.PagerStyle.Visible = true;
Show me
DataGridPagerStyle Members Mode Position