We can hide a gridview column in Vb.net code behind at gridview_RowCreated event:
This is sample where we can hide a fixed column ( here that is column 12) . You can make dynamically sending a desired column number :
Protected Sub gvRekonstrukcije_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvRekonstrukcije.RowCreated
e.Row.Cells(12).Visible = False
End Sub
- Blogger Comment
- Facebook Comment
Subscribe to:
Post Comments
(
Atom
)
0 comments:
Post a Comment