GridView中动态构建列

 BoundField bf;
 bf = new BoundField();  
 bf.HeaderText ="";
 bf.DataField = "";
 GridView1.Columns.Add(bf);
原文地址:https://www.cnblogs.com/nyth/p/1988087.html