This is a discussion on How to bind data in repeater when i use two repeater's in nested format? within the ASP and ASP.NET Programming forums, part of the Web Development category; How to bind data in repeater when i use two repeater's in nested format?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| hi....Kmaker....... ![]() I have given the sample code for bind data in nested repeater..... public void rptMilestones_ItemDataBound(object sender, RepeaterItemEventArgs e) { ListItemType mileStoneListItem = e.Item.ItemType; if (mileStoneListItem == ListItemType.Item || mileStoneListItem == ListItemType.AlternatingItem) { DataRowView mileStoneDataRowView = e.Item.DataItem as DataRowView; if (mileStoneDataRowView != null) { if (warnIproDataPop) { Literal warnLiteral = (Literal)e.Item.FindControl("warnLiteral"); warnLiteral.Text = "<font style='COLOR: white; BACKGROUND-COLOR: " + warnIproColor + "'> enter dataset ID & population </font>"; } Repeater nestedRepeater = e.Item.FindControl("rptMSNotes") as Repeater; if (nestedRepeater != null) { nestedRepeater.DataSource = mileStoneDataRowView.CreateChildView("MSNotes"); nestedRepeater.DataBind(); } Repeater nestedRepeater2 = e.Item.FindControl("rptMSTasks") as Repeater; if (nestedRepeater2 != null) { nestedRepeater2.DataSource = mileStoneDataRowView.CreateChildView("MSTasks"); nestedRepeater2.DataBind(); } } } } |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/asp-asp-net-programming/2067-how-bind-data-repeater-when-i-use-two-repeaters-nested-format.html | |||
| Posted By | For | Type | Date |
| Help - GBHSS-PKT-2000 | Google Groups | This thread | Refback | 07-28-2007 02:15 AM |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C have nested functions | vigneshgets | C and C++ Programming | 1 | 09-21-2007 03:30 AM |
| nested functions in C? | prasath | C and C++ Programming | 2 | 08-29-2007 03:45 AM |
| How to change the checkBox properties, which is inside nested Repeater/Grid | kingmaker | C# Programming | 2 | 08-10-2007 12:28 AM |
| How to bind the xml data directly in to datgrid with out using dataset? | bluesky | ASP and ASP.NET Programming | 2 | 07-20-2007 12:54 AM |
| I have a repeater in which I want to bind multiple images, if I... | kingmaker | ASP and ASP.NET Programming | 0 | 07-16-2007 11:22 PM |