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




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph