Ejemplo n.º 1
0
    private void BindTree(int parentId)
    {
        var dt = _bus.Query(null, null);

        if (dt != null)
        {
            _dv      = dt.DefaultView;
            _dv.Sort = "OrderBy";
            BuildTree(null, parentId);
        }
    }
Ejemplo n.º 2
0
    private void BindData()
    {
        var bus = new InfoGroupBus();
        var dt  = bus.Query(null, "OrderBy");

        if (dt != null)
        {
            _menus           = dt.DefaultView;
            _menus.RowFilter = "ParentId=0";

            this.menu.DataSource = _menus;
            this.menu.DataBind();
        }
    }