Simply instead of the following line
<asp:repeater id="childRepeater" runat="server" datasource='<%# ((DataRowView)Container.DataItem) .Row.GetChildRows("myrelation") %>' >Use below line.
<asp:repeater id="childRepeater" runat="server" datasource='<%# GetChildData(databinder.Eval(Container.DataItem,"PKID")) %>' >
and in code behind file write this following function
public function GetChildData(byval pkid as long) as datatable dim dt as datatable ' get your result in db by PKID or any other filteration return dt end function here is the example .... http://support.microsoft.com/default.aspx?scid=kb;en-us;306154
No comments:
Post a Comment
Post your comments here: