System.Web.UI.WebControls Namespace DataGridPagerStyle Class
Sets or retrieves the text displayed for the previous page button.
Inline |
<pagerstyle prevpagetext = strValue ... > |
Script |
DataGrid.PagerStyle.PrevPageText = strValue |
strValue |
The text to display for the previous page button. |
The property is read/write with a default value of <.
Use the PrevPageText property to provide custom text for the previous page button. The Mode property must be set to PagerMode.NextPrev for this property to have any effect.
This property is used along with the PrevPageText property to create a custom set of controls for the previous and previous buttons of the pager on the DataGrid control.
NOTE: This property does not automatically encode special characters to HTML. You need to convert these characters to the appropriate HTML value. For example, use &lt; to render the less than symbol ( < ).
The following example demonstrates how to set the PrevPageText property at design time, to specify custom text for the previous page navigation button of the pager element.
<pagerstyle ...
nextpagetext = "Next"
prevpagetext = "Back" />
DataGridPagerStyle Members NextPageText