How to hide a column (GridView) but still access its value?

后端 未结 13 1265
粉色の甜心
粉色の甜心 2020-11-27 17:52

I have a GridView with a DataSource (SQL Database). I want to hide a column, but still be able to access the value when I select the record. Can someone show me

13条回答
  •  無奈伤痛
    2020-11-27 18:15

    I have a new solution hide the column on client side using css or javascript or jquery.

    .col0
    {
      display: none;
    }
    

    And in the aspx file where you add the column you should specify the CSS properties:

     
    

提交回复
热议问题