asp.net.ph

DataGridPagerStyle.Visible Property

System.Web.UI.WebControls Namespace   DataGridPagerStyle Class


Sets or retrieves a value indicating whether the pager is displayed in a DataGrid control.

Syntax


Inline <pagerstyle = [ true | false ]... >
Script DataGrid.PagerStyle.Visible = [ true | false ]

Property Value

This property accepts or returns only a boolean value: true to display the pager; otherwise false. Default value is true.

Remarks

Use the Visible property to specify whether the pager is displayed in a DataGrid control.

Example

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 

See Also

DataGridPagerStyle Members   Mode   Position Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note