void OnPopup(object sender, EventArgs e)
        {
            DetailGrid.BeginUpdate();
            try {
                DetailGrid.DataSource = null;
                DetailGrid.DataSource = GetDetailData();
            }
            finally {
                DetailGrid.EndUpdate();
            }
            PopupContainerEdit edit = sender as PopupContainerEdit;

            if (edit.Properties.PopupControl.Parent == null)
            {
                edit.Properties.PopupControl.Parent = edit.FindForm();
            }
            DetailGrid.ForceInitialize();
            edit.Properties.PopupFormSize = CalcDetailViewSize();
        }