DataGrid's use question summary

xiaoxiao2021-03-06  63

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.

转载请注明原文地址:https://www.9cbs.com/read-88496.html

New Post(0)