Nezir Zahirović

VB.NET Hide Column DevExpress Code Behind

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
SHARE
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment