HierarchicalDataGrid.aspx content
<% @ Page language = "c #" Codebehind = "HierarchicalDataGrid.aspx.cs" AutoEventWireup = "false" Inherits = "HierarchicalDataGrid.HierarchicalDataGrid"%> <% @ Import namespace = "System.Data"%>
Font> headertemplate> order number: <% # databinder.eval (container.DataItem, "OrderID")%> b> td> Tr> headerstyle> asp: BoundColumn> HeaderStyle> < % # DataBinder.eval (Container.DataItem, "ProductName")%> itemTemplate> asp: boundcolumn> asp: boundcolumn> asp: boundcolumn > Columns> ask: DataGrid> td> tr> // The following call is required for the Web Form designer // [system.diagnostics.debuggerstepthrough ()] Override protected void Oninit (Eventargs E) {//// Codegen: This call is an ASP.NET web form Designer is required. // InitializeComponent (); base.OnInit (e);} private void InitializeComponent () {this.DataGrid1.ItemDataBound = new System.Web.UI.WebControls.DataGridItemEventHandler (this.DataGrid1_ItemDataBound); this.Load = new System .Eventhandler (this.page_load); } // Codegen: This method is to change the Web Form designer // Do not use the code editor to change here. // private void page_init (system.EventArgs e) // {// InitializationComponent (); //} #ENDREGION 转载请注明原文地址:https://www.9cbs.com/read-33054.html9cbsNew Post(0)
Tr>
// The following call is required for the Web Form designer // [system.diagnostics.debuggerstepthrough ()] Override protected void Oninit (Eventargs E) {//// Codegen: This call is an ASP.NET web form Designer is required. // InitializeComponent (); base.OnInit (e);} private void InitializeComponent () {this.DataGrid1.ItemDataBound = new System.Web.UI.WebControls.DataGridItemEventHandler (this.DataGrid1_ItemDataBound); this.Load = new System .Eventhandler (this.page_load);
} // Codegen: This method is to change the Web Form designer // Do not use the code editor to change here. // private void page_init (system.EventArgs e) // {// InitializationComponent (); //} #ENDREGION