Hidden Field Inside GridView

If you add Visible="False" to any control Such control is not rendered on the client side at all. It is accessible on server side only. If you want to get it invisible, but present in DOM and accessible using JavaScript change Visible="False" to style="display:none"

1 comment:

  1. Setting style to hidden in this way doesn't work:
    Attribute 'style' is not a valid attribute of element Boundfield.