Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid Paging?

Status
Not open for further replies.

intrex

IS-IT--Management
Apr 14, 2002
70
US
I am trying to do something that seems very common sense, but it apears that C# doesn't allow in DataGrids. I would like to have a pager style of <prev (1) next>. The number in the middle of the paging arrows would be the current page that you are on. Am I missing something or is this impossible to do with the default paging in a DataGrid?
 
You can set whatever "link" text you want. While viewing the .aspx in Visual Studio, switch to HTML view.

Look for the <PagerStyle> tag in your datagrid.

Here's an example:

Code:
<PagerStyle NextPageText="Next&amp;gt;" PrevPageText="&amp;lt;Prev" Font-Name="Tahoma" Font-Size="X-small" Mode="NextPrev" Position="Bottom" HorizontalAlign="Center" VerticalAlign="Bottom" Font-Underline="false"></PagerStyle>

Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top