根据名字获取控件

((DevExpress.XtraGrid.Views.BandedGrid.GridBand)(this.GetType().GetField(controlname, System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.IgnoreCase).GetValue(this))).Visible = false;

posted @ 2018-05-30 13:47  歌风  阅读(130)  评论(0)    收藏  举报