Public member 'GetChildRows' on type 'String' not found

Pozdrav,
može pomoć.

Error:

Public member ‘GetChildRows’ on type ‘String’ not found.

code:

If myData.Tables(0).Rows(0)(“terrace”).GetChildRows(“myrelation”).ToString () = “Terrace” then
Labelfac.text ="Terrace"
end if

Inače ovo radi ako stavim u .aspx:

<asp:ListView runat=“server” OnItemDataBound=“Sub_ItemDataBound” ID=“subMenu” DataSource=’<%# Ctype(Container.Dataitem,DataRowView).Row.GetChildRows(“myrelation”)%>’ ItemPlaceholderID=“PlaceHolder3” >

<%#Container.DataItem(“terrace”)%>

Htio bi napraviti kroz kod.

Hvala

myData.Tables(0).Rows(0)(“terrace”) je tipa string (ćelija u 0 redu, kolona ‘terrace’), pa je logicno da ta celija nemoze imati child rows.
Neznam tocno sto zelis, ali mi se svakako cini da previse “hackiras”, mozda postoji jednostavniji nacin :slight_smile:


Copyright © 2022 WM Forum - AboutContact