DataGridPagerStyle::Position Property

 

Gets or sets the position of the pager element in the DataGrid control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
property PagerPosition Position {
	PagerPosition get();
	void set(PagerPosition value);
}

Property Value

Type: System.Web.UI.WebControls::PagerPosition

One of the PagerPosition values. The default value is Bottom.

Exception Condition
ArgumentOutOfRangeException

The specified value is not one of the PagerPosition values.

Use the Position property to specify the location where the pager element is displayed in the 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 DataGrid control.

The following code example demonstrates how to use the Position property to specify that the pager is displayed at the upper edge of the DataGrid control.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: