zoukankan      html  css  js  c++  java
  • DevExpress.XtraTreeList 小结

    搞了半天才绑定好,没有弄清楚父子之间的关系

            <dx:ASPxTreeList ID="ASPxTreeList1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" KeyFieldName="child_id" ParentFieldName="parent_id">
                <Columns>
                    <dx:TreeListTextColumn FieldName="Product_name" VisibleIndex="0">
                    </dx:TreeListTextColumn>
                    <dx:TreeListTextColumn FieldName="Product_sum" VisibleIndex="1">
                    </dx:TreeListTextColumn>
                    <dx:TreeListTextColumn FieldName="support_id" VisibleIndex="2">
                    </dx:TreeListTextColumn>
                    <dx:TreeListTextColumn FieldName="child_id" VisibleIndex="3">
                    </dx:TreeListTextColumn>
                    <dx:TreeListTextColumn FieldName="parent_id" VisibleIndex="4">
                    </dx:TreeListTextColumn>
                </Columns>
                <SettingsSelection AllowSelectAll="True" Enabled="True" Recursive="True" />
            </dx:ASPxTreeList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Test_CumtomConnectionString %>"SelectCommand="SELECT * FROM [db_product_information]"
           

    额,我怕忘了,就先传点,主要是关系要对好

    这边

    KeyFieldName="child_id"        
    ParentFieldName="parent_id"
    年轻过得闲,以后被人嫌... 年轻累不死....
  • 相关阅读:
    VBA基础四:数据库链接(WPS2019)
    VBA基础三:循环(DO...LOOP,)
    随机多人红包
    概率抽奖
    七步轻松实现大数据库表的数据转储
    SQL Server中的行列倒置技巧
    把对应表的字段跨表赋值
    sql内日期格式化输出
    事务的用法
    女孩,你为什么不沉住气奋斗
  • 原文地址:https://www.cnblogs.com/hrx-star/p/3151361.html
Copyright © 2011-2022 走看看