Using system.data.sqlclient; protected system.web.ui.WebControls.DataGrid DGCMCP; SqlDataReader DR; {....} DGCMCP.DataSource = Dr; DGCMCP.DATABIND (); This time you will find that you choose to allow you to choose Allow Paging and allow custom paging, only the top page can only be displayed, and the page number under the bottom is only 1. If you are converting DR to a DataTable and then help, you can't afford to use dataformatstring = {0: D} at this time, it is displayed YYYY / MM / DD HH: FF: SS. My solution is to get the time when you go to the data database.