' Create the view Dim view As New Infragistics.Web.UI.DataSourceControls.DataView() ' Set view to use a SQL data source view.DataSourceID = Me.SqlDataSource1.ID ' Give the view an ID view.ID = "SqlDataSource_View1" ' Add the view Me.WebHierarchicalDataSource1.DataViews.Add(view)