获取GridView控件总列数

GridView控件,它不管是放在MasterPage母版页内,还是放在Page单独网页内,它不管是自动显示列AutoGenerateColumns="true",还是手动定列AutoGenerateColumns="false",获取GridView控件的总列数的方法均是一样的。



原文地址:https://www.cnblogs.com/insus/p/3265629.html