Exemplo n.º 1
0
        internal virtual object GetInPlaceEdit(object component, ref string alternateText)
        {
            // perhaps we can get a custom editor via a UITypeEditor or TypeConverter
            var dropDown = TreeGridDesignerTreeControl.CreateTypeEditorHost(this, component);

            if (dropDown != null)
            {
                // set flag to dismiss the label edit when the drop down closes.
                dropDown.DismissLabelEditOnDropDownClose = true;
                return(dropDown);
            }

            // default editor type (text box)
            return(typeof(TreeGridDesignerInPlaceEdit));
        }