public override void SyncChanges()
        {
            EnsureChildControls();
            ActionGrid webpart = WebPartToEdit as ActionGrid;

            if (webpart != null)
            {
                txtConfig.Text       = webpart.XmlConfig;
                chkDevErrors.Checked = webpart.ShowExtendedErrors;
            }
        }
        public override bool ApplyChanges()
        {
            EnsureChildControls();
            ActionGrid webpart = WebPartToEdit as ActionGrid;

            if (webpart != null)
            {
                webpart.ClearControlState();
                webpart.XmlConfig          = txtConfig.Text;
                webpart.ShowExtendedErrors = chkDevErrors.Checked;
            }

            return(true);
        }