IT Community - Software Programming, Web Development and Technical Support

How to bind data in repeater when i use two repeater's in nested format?

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?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 07-18-2007, 12:19 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default How to bind data in repeater when i use two repeater's in nested format?

How to bind data in repeater when i use two repeater's in nested format?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-20-2007, 03:28 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Thumbs up Re: How to bind data in repeater when i use two repeater's in nested format?

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 + "'>&nbsp;enter dataset ID & population&nbsp;</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();
}
}
}
}
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -7. The time now is 12:21 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0