添加一个按钮,然后按钮事件里添加如下(动态添加列)GridView g = new GridView();BoundField f = new BoundField();f.DataField = "column_test";g.Columns.Add(f);