Configures the System.Web.UI.WebControls.CheckBoxList control prior to rendering on the client.
- e
- An EventArgs that contains the event data.
The CheckBoxList.OnPreRender(EventArgs) method is used primarily by control developers in custom controls that derive from the System.Web.UI.WebControls.CheckBoxList class. The CheckBoxList.OnPreRender(EventArgs) method allows derived classes to handle the System.Web.UI.Control.PreRender event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
The CheckBoxList.OnPreRender(EventArgs) method performs any necessary prerendering steps prior to saving view state and rendering content for the System.Web.UI.WebControls.CheckBoxList. The individual list items contained in the System.Web.UI.WebControls.CheckBoxList control are initialized for rendering using the current ListControl.AutoPostBack, ListControl.CausesValidation, and ListControl.ValidationGroup values.