/// <summary>
        /// 获得DataGrid中ComboBox的编辑方式
        /// </summary>
        /// <param name="dsName"></param>
        /// <param name="nvName"></param>
        /// <param name="filter"></param>
        /// <returns></returns>
        public static MyFreeComboBoxEditor GetGridFreeComboEditor(string dsName, string nvName, string filter)
        {
            MyFreeComboBoxEditor editor = new MyFreeComboBoxEditor();

            ControlDataLoad.InitDataControl(editor.TemplateControl as INameValueMappingBindingControl, dsName, nvName, nvName, filter);

            return(editor);
        }
        /// <summary>
        /// 获得DataGrid中ComboBox的编辑方式
        /// </summary>
        /// <param name="type"></param>
        /// <param name="notUseEnum"></param>
        /// <param name="filter"></param>
        /// <returns></returns>
        public static MyOptionPickerEditor GetGridMultiComboEditor(Type type, bool notUseEnum, string filter)
        {
            string typeNvName           = NameValueMappingCollection.Instance.Add(type, notUseEnum);
            MyOptionPickerEditor editor = new MyOptionPickerEditor(typeNvName);

            ControlDataLoad.InitDataControl(editor.TemplateControl as INameValueMappingBindingControl, type, notUseEnum, filter);

            return(editor);
        }
        /// <summary>
        /// 获得DataGrid中MultiCombo的编辑方式
        /// </summary>
        /// <param name="dsName"></param>
        /// <param name="nvName"></param>
        /// <param name="filter"></param>
        /// <returns></returns>
        public static MyOptionPickerEditor GetGridMultiComboEditor(string dsName, string nvName, string filter)
        {
            string newNvName            = NameValueMappingCollection.Instance.GetDataSourceName(dsName, nvName, filter);
            MyOptionPickerEditor editor = new MyOptionPickerEditor(newNvName);

            ControlDataLoad.InitDataControl(editor.TemplateControl as INameValueMappingBindingControl, dsName, nvName, nvName, filter);

            return(editor);
        }
        /// <summary>
        /// 获得DataGrid中ComboBox的编辑方式
        /// </summary>
        /// <param name="type"></param>
        /// <param name="notUseEnum"></param>
        /// <param name="filter"></param>
        /// <returns></returns>
        public static MyComboBoxEditor GetGridComboEditor(Type type, bool notUseEnum, string filter)
        {
            string typeNvName = NameValueMappingCollection.Instance.Add(type, notUseEnum);
            string newNvName  = NameValueMappingCollection.Instance.GetDataSourceName(null, typeNvName, string.Empty);

            MyComboBoxEditor editor = new MyComboBoxEditor(newNvName);

            ControlDataLoad.InitDataControl(editor.TemplateControl as INameValueMappingBindingControl, type, notUseEnum, filter);

            return(editor);
        }