コード例 #1
0
        private void InitReportList()
        {
            ReportList.DataSource = rptFiles.RptFileTable.DefaultView;

            ReportList.Columns["src"].Visible   = false;
            ReportList.Columns["level"].Visible = false;
            ReportList.Columns["name"].Caption  = "报表列表";
            //将报表节点全部展开
            ReportList.ForceInitialize();
            expandTreeList(ReportList.Nodes);
            //ReportList.ExpandAll();
        }