/// <summary> /// Fires the PreRender event /// </summary> /// <param name="e"></param> protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); EnsureID(); // EnsureScriptManager(); if (SupportsClientState) { Page.ClientScript.RegisterHiddenField(ClientStateFieldID, SaveClientState()); Page.RegisterRequiresPostBack(this); } ScriptManager.RegisterScriptControl <ScriptGridViewBase>(this); ScriptObjectBuilder.RegisterCssReferences(this); }