c# - Nested Repeater -


I have a display that should be a bit more dynamic than what I am using and I do not quite think which answer Need it, find it

  Savings with customer product (or so) with savings product (or so) savings on the customer (and so on)  

I know every sector Always have a minimum, someone said that use nested rapper or something I was looking around and do not know how to use a nested criminal I am on a deadline and by the time I do some work He can not really play with things Is obtained.

What should I do to use asap control? One example would be nice but I need help in the right direction.

I am using SQL, but I am getting the data through the link.

Nested rippers are very easy, just throw one into your item template, and your main repeater's on the main notebook Do the following in the event

  if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) {DataRowView line = (DataRowView) e.Item .DataItem; Repeater nested repeater = E. ITEM FontControl ("nested repeater") as repeater; Nested Repertor.Data Source = getSavingsPerCustomer (line ["customerID"]); NestedRepeater.DataBind (); }  

Where the client of the external repeater's template was a criminal and there was a separate saving in the internal one

Perhaps the wrong syntax but you get this idea

  & lt; Asp: repeater id = "external" & gt; & Lt; HeaderTemplate & gt; & Lt; Div style = "float: left" & gt; & Lt; / HeaderTemplate & gt; & Lt; ItemTemplate & gt; Customers: & lt;% = Eval (Customer)% & gt; & Lt; Br / & gt; & Lt; Asp: repeater id = "nested reporter" & gt; & Lt; ItemTemplate & gt; Savings: & lt;% = Eval (Savings)% & gt; & Lt; Br / & gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: Repeater & gt; & Lt; / ItemTemplate & gt; & Lt; FooterTemplate & gt; & Lt; / Div & gt; & Lt; / FooterTemplate & gt; & Lt; / ASP: Repeater & gt;  


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -