protected override void CreateChildControls() { gv = new RsGridView(); Controls.Add(gv); gv.ID = "gv"; switch (this.ListStyle) { case ListStyleE.CheckBoxList: gv.ShowCheckBox = true; break; case ListStyleE.RadioList: gv.ShowRadioButton = true; break; case ListStyleE.List: break; default: break; } }