2.后台代码
Protected Sub btnLoad_Click(sender As Object, e As EventArgs) Handles btnLoad.Click
Dim f As String = Server.MapPath("~/") & "layout01.xml"
Me.C1GridView1.LoadLayout(f)
Me.C1GridView1.DataBind()
End Sub
Protected Sub btnLoad2_Click(sender As Object, e As EventArgs) Handles btnLoad2.Click
Dim f As String = Server.MapPath("~/") & "layout02.xml"
Me.C1GridView1.LoadLayout(f)
Me.C1GridView1.DataBind()