예제 #1
0
        /// <summary>
        /// ���DataGrid��ComboBox�ı༭��ʽ
        /// </summary>
        /// <param name="type"></param>
        /// <param name="notUseEnum"></param>
        /// <param name="filter"></param>
        /// <returns></returns>
        public static MyFreeComboBoxEditor GetGridFreeComboEditor(Type type, bool notUseEnum, string filter)
        {
            string typeNvName = NameValueMappingCollection.Instance.Add(type, notUseEnum);
            MyFreeComboBoxEditor editor = new MyFreeComboBoxEditor();
            ControlDataLoad.InitDataControl(editor.TemplateControl as INameValueMappingBindingControl, type, notUseEnum, filter);

            return editor;
        }
예제 #2
0
        /// <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;
        }