protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            gridView = Control as GridView;

            //
            // Ensure Security
            //          
            gridView.EnsureSecurity();

            //
            // set the grid view effectgs
            //            
            gridView.RowDataBound += GridViewEffects;
            gridView.RowDataBound += GridViewSortEffect;
            gridView.RowDataBound += GridViewRemoveButtons;
            gridView.RowDataBound += GridViewInsertRowSelectScript;
            Page.ClientScript.RegisterClientScriptResource(GetType(),
                                                           "InfoControl.Web.UI.Adapters.GridViewEffects.js");

            string rowSelectableText = gridView.Attributes["RowSelectable"];
            isRowSelectable = String.IsNullOrEmpty(rowSelectableText)
                                  ? true
                                  : Convert.ToBoolean(rowSelectableText);
        }