Template file: Sample1.page
Class file: Sample1.php
Template file: Sample2.page
Class file: Sample2.php
Template file: Sample3.page
Class file: Sample3.php
Template file: Sample4.page
Class file: Sample4.php
Template file: Sample5.page
Class file: Sample5.php
Template file: Sample6.page
Class file: Sample6.php

/Controls/Samples/TDataGrid/Sample5.page

<com:TContent ID="body">

<h1>TDataGrid Sample 5</h1>
<h2>Paging</h2>

<div style="width:500px">
<com:TDataGrid
	ID="DataGrid"
	AllowPaging="true"
	PageSize="5"
	PagerStyle.Mode="Numeric"
	PagerStyle.HorizontalAlign="Right"
	Width="100%"
	CellPadding="2"
	HeaderStyle.BackColor="black"
	HeaderStyle.ForeColor="white"
	ItemStyle.BackColor="#BFCFFF"
	ItemStyle.Font.Italic="true"
	AlternatingItemStyle.BackColor="#E6ECFF"
	OnPageIndexChanged="changePage"
	OnPagerCreated="pagerCreated"
	/>
</div>

<com:TPanel GroupingText="Pager Visibility" Width="300px">

<com:TCheckBoxList
     AutoPostBack="true"
     RepeatColumns="2"
     OnSelectedIndexChanged="changePagerPosition">
	<com:TListItem Text="Top" />
	<com:TListItem Text="Bottom"  Selected="true" />
</com:TCheckBoxList>

</com:TPanel>

<com:TPanel GroupingText="Pager Mode" Width="300px">

<com:TPanel GroupingText="NextPrev Pager" Width="300px">

Next Page Text:
<com:TTextBox ID="NextPageText" Text="Next" /><br/>
Prev Page Text:
<com:TTextBox ID="PrevPageText" Text="Prev" /><br/>
<com:TButton Text="Submit" OnClick="useNextPrevPager" />
</com:TPanel>

<com:TPanel GroupingText="Numeric Pager" Width="300px">

Page Button Count:
<com:TTextBox ID="PageButtonCount" Text="5" /><br/>
<com:TButton Text="Submit" OnClick="useNumericPager" />
</com:TPanel>

<com:TPanel GroupingText="Page Size" Width="300px">
<com:TTextBox ID="PageSize" Text="5" /><br/>
<com:TButton Text="Submit" OnClick="changePageSize" />
</com:TPanel>

</com:TPanel>

</com:TContent>