Пример #1
0
        /// <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;
        }
Пример #2
0
        /// <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;
        }