private void initReportList(DataTable table) { ReportList.DataSource = table; ReportList.Columns["src"].Visible = false; ReportList.Columns["level"].Visible = false; ReportList.Columns["name"].Caption = "报表列表"; ReportList.BestFitColumns(); ReportList.AfterCheckNode += new DevExpress.XtraTreeList.NodeEventHandler(ReportList_AfterCheckNode); ReportList.DoubleClick += new EventHandler(ReportList_DoubleClick); InitNameDict(); }