<dg:APNSoftDataGrid id="dg1" runat="server" />
<asp:PlaceHolder id="PlaceHolder1" runat="server" />
[C#] //Create DataGrid component instance APNSoft.WebControls.APNSoftDataGrid dg1 = new APNSoft.WebControls.APNSoftDataGrid(); dg1.BasePage = base.Page; dg1.ID = "dg1"; //Set component properties dg1.SkinFolder = "~/Skins/Classic/"; dg1.DataSource = ... dg1.DataBind(); //Put the DataGrid in the PlaceHolder PlaceHolder1.Controls.Add(dg1); [VB.NET] 'Create DataGrid component instance dim dg1 as APNSoft.WebControls.APNSoftDataGrid = _ new APNSoft.WebControls.APNSoftDataGrid dg1.BasePage = Me.Page dg1.ID = "dg1" 'Set component properties dg1.SkinFolder = "~/Skins/Classic/" dg1.DataSource = ... dg1.DataBind() 'Put the DataGrid in the PlaceHolder PlaceHolder1.Controls.Add(dg1)