开发者

how to retrieve the selected row cell value if it is visible property is false in gridview?

开发者 https://www.devze.com 2023-02-02 12:41 出处:网络
how to retrieve the selected ro开发者_如何学Pythonw cell value if it is visible property is false in gridview ?Don\'t set Visible to false. Set Style Display to none

how to retrieve the selected ro开发者_如何学Pythonw cell value if it is visible property is false in gridview ?


Don't set Visible to false. Set Style Display to none

Create a css class like this

<style type="text/css">
    .hidden
    {
        display:none;
    }
</style>

And set ItemStyle-CssClass, HeaderStyle-CssClass to hidden . Then, you should be able to read cell text. If you set Visible to false, you will not be able to retrieve the value as the column won't be databound.


http://www.dotnetspark.com/kb/1937-how-to-get-hidden-column-value-gridview.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号