Wednesday, July 23, 2008

Display Subtotal Header asp.net C# sql-server databse

Go to this article and code this code
Master-Detail Display using Nested Repeater Web Forms Control: "Master-Detail Display using Nested Repeater Web Forms Control"

change following lines.....

DataRelation rel = new DataRelation("CustOrdRel",ds.Tables["Customers"].Columns["CustomerID"],ds.Tables["Orders"].Columns["CustomerID"]);
.
.
.
.
((Repeater)e.Item.FindControl("RepOrders")).DataSource=( ( DataRowView ) e.Item.DataItem ).CreateChildView("CustOrdRel");
((Repeater)e.Item.FindControl("RepOrders")).DataBind();


www.visli.com

No comments: