すべてをループする方法はありますかthe levels of treeview nodes
。
私はxmlデータソースのツリービューを持っています:
<asp:TreeView ID="tv_products" runat="server" ImageSet="Events" DataSourceID="XmlDataSource1" OnSelectedNodeChanged="DirectoryTree_SelectedNodeChanged" ShowLines="True" OnDataBound="DirectoryTree_DataBound">
<DataBindings>
<asp:TreeNodeBinding DataMember="MenuItem" ImageUrl="~/images/folder.png" TextField="fullname" ValueField="maincode" ToolTipField="fullname" />
</DataBindings>
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="False" ForeColor="Red" />
<SelectedNodeStyle Font-Underline="True" Font-Bold="true" Font-Size="Small" HorizontalPadding="0px" VerticalPadding="0px" />
<NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" /></asp:TreeView>
可能であれば、いくつかの例を教えてください。