Table 必须要有thead
若是gridview需要保证有thead,若无,需在后台加上Gridview1.HeaderRow.TableSection = TableRowSection.TableHeader
接下来按照此文档做:
https://wenku.baidu.com/view/fcd04d3c5bcfa1c7aa00b52acfc789eb172d9eb3.html