Using system.data.sqlclient;
Protected system.Web.ui.WebControls.DataGrid DGCMCP;
SqlDataReader DR;
{....}
DGCMCP.DataSource = DR;
DGCMCP.DATABIND ();
At this time, I will find that the top page can only be displayed on the top page, 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.