I have 3 buttons: View button, Reset button and Export excel button with in a date range(start date and end date).
In View button, the gridview will shown within a date range.
In Reset button, the gridview will reset.
I used,
gvrecord.datasource=null;
gvrecord.databind();
But after reset, the gridview record will shown in export excel sheet.
要重置GridView数据,请使用:
gvrecord.Rows.Clear();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.