private void BindTree(int parentId) { var dt = _bus.Query(null, null); if (dt != null) { _dv = dt.DefaultView; _dv.Sort = "OrderBy"; BuildTree(null, parentId); } }
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(); } }