I use a asp:GridView and set AllowPaging="True" and PageSize="1" . but I don’t want show the number of page
If so, then whats the point of having a pagination at all? Just fetch the desired number of records and show it.
Difficult to understand such requirements! :doh:
Still, if you want to hide the pager, use:
MSDN: GridView.PagerSettings Property [
^] - set
Visible = False
for it.