Tips and tricks for .NET using ASP and VB code.

Copy all style attributes from a master GridView to another GridView

    Protected Sub GridView1_Init(sender As Object, e As System.EventArgs) Handles GridView1.Init
        Dim ThisGridView As GridView = sender
        ThisGridView.ApplyStyle(MasterGridView.ControlStyle)
    End Sub

No comments:

Post a Comment

Search This Blog