动态加载gridview里面的列. //动态生GridView protectedvoidGridView1_RowCreated(objectsender,GridViewRowEventArgse) { switch(e.Row.RowType) { //判断是否表头 caseDataControlRowType.Header: //第一行表头 TableCellCollectiontcHeader=e.Row.