Why column count is 0 for GridView

前端 未结 5 790
春和景丽
春和景丽 2021-01-28 04:37

Friends, I\'m populating a GridView in my asp.net application using following code.

    GridView grdExport = new GridView();
    DataSet dsRecord = objHelper.gRe         


        
5条回答
  •  一向
    一向 (楼主)
    2021-01-28 04:50

    It shows the counts = 0 because by default autogenerated columns is true If you add manual colums then it will shows the column counts.
    If you write grdExport.AutoGenerateColumns = false; then no columns would rendered in page.

提交回复
热议问题