日期:2011-04-08 浏览次数:20570 次
private HtmlInputCheckBox cb;      //各行前面的多选框
        private Button HideButton = new Button();//隐藏按钮用于引发事件,后面会说到
[Browsable(true)]
        [Category("Appearance")]
        [Description("隔行背景色(单号行的背景)")]
        public Color SingleBackGroundColor
        {
            get
            {
                return ViewState["SingleBackGroundColor"] != null ? (Color)ViewState["SingleBackGroundColor"] : Color.Empty;
            }
            set
            {
                ViewState["SingleBackGroundColor"] = value;
            }
        }
        [Browsable(true)]
        [Category("Appearance")]
        [Description("隔行背景色(双号行的背景)")]
        public Color DoubleBackGroundColor
        {
            get
            {
                return ViewState["DoubleBackGroundColor"] != null ? (Color)ViewState["DoubleBackGroundColor"] : Color.Empty;
            }
            set
            {
                ViewState["DoubleBackGroundColor"] = value;
            }
        }
        [Browsable(true)]
        [Category("Appearance")]
        [Description("选中行背景色")]
        public Color ClickBackGroundColor
        {
            get
            {
                return ViewState["ClickBackGroundColor"] != null ? (Color)ViewState["ClickBackGroundColor"] : Color.Empty;
            }
            set
            {
                ViewState["ClickBackGroundColor"] = value;
            }
     &