How do I hide the DataPager if there is only one page of data?

In the DataPager events I have a asp:Button when clicked it gets records.

Sometimes there will be only one record and I need to hide the pager if there is one record.

It could be done on postback but I don't know what property is for the page count.

Edit
Report