.GRIDVIEW奇偶行变色

 //设置奇偶行不同颜色
            this.advBandedGridView1.Appearance.OddRow.BackColor = Color.BurlyWood;  // 设置奇数行颜色 // 默认也是白色 可以省略
            this.advBandedGridView1.OptionsView.EnableAppearanceOddRow = true;   // 使能 // 和和上面绑定 同时使用有效
            this.advBandedGridView1.Appearance.EvenRow.BackColor = Color.CadetBlue; // 设置偶数行颜色
            this.advBandedGridView1.OptionsView.EnableAppearanceEvenRow = true;   // 使能 // 和和上面绑定 同时使用有效

posted @ 2012-10-16 22:04  郑松涛  阅读(1759)  评论(0编辑  收藏  举报