asp.net.ph

DataGridPagerStyle.Position Property

System.Web.UI.WebControls Namespace   DataGridPagerStyle Class


Sets or retrieves the vertical position of the pager element in a DataGrid control.

Syntax


Inline <pagerstyle position = enumValue ... >
Script DataGrid.PagerStyle.Position = enumValue

Property Value


enumValue One of the PagerPosition values.

The property is read/write with a default value of Bottom.

Exceptions


Exception Type Condition
ArgumentException The given value is not one of the PagerPosition values.

Remarks

Use the Position property to specify the location where the pager element is displayed in a DataGrid control. The pager element can be displayed at the upper edge, the lower edge, or at both the upper and lower edges of the grid.

Example

The following example demonstrates how to programmatically set the PagerStyle.Position property at run time. This simple script dynamically changes the display position of the pager based on the state of a CheckBox named chkTop.

if ( chkTop.Checked )
   myGrid.PagerStyle.Position = PagerPosition.Top;
else
   myGrid.PagerStyle.Position = PagerPosition.Bottom;

 Show me 

See Also

DataGridPagerStyle Members   PagerPosition Enum   Mode   Visible 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