解决DevExpress WinFormCollection(版本2.2.5) LookUpEdit 不能编辑问题!!
一直不知道如何设置LookUpEdit 为可写状态.看了官网的KB(Knowlegde Base)https://www.devexpress.com/Support/Center/ViewKBIssue.aspx?kbid=A869(英文),才知道原来这么简单的!在Properties将TextEditStyle 设置为standard即可!
如图:

官方说明:
Article ID: A238 ; Product Group: .NET ; Product: XtraEditors Library ; Version(s): 2, 3, 6.1 ; Modified On: 21 Apr 2006 
Description
如图:
官方说明:
How to Use the ProcessNewValue Event of a LookUp Editor?
Description
How to Use the ProcessNewValue Event of a LookUp Editor
SolutionThe LookUp editor allows a user to enter values which cannot be found in the lookup list. A programmer should handle this situation, otherwise a new value is lost. The LookUp editor provides a ProcessNewValue event for this.
First of all, you should set the SearchMode property to OnlyInPopup and TextEditStyle to Standard to enable free text entry.
First of all, you should set the SearchMode property to OnlyInPopup and TextEditStyle to Standard to enable free text entry.
There are two common approaches for handling the ProcessNewValue event:
1. Immediately insert the new record in the lookup table and generate a new ID for it.
2. Display a dialog, where a user can set values for a new data row.
Below are two code snippets which demonstrate the implementation of these approaches.
 
                    
                     
                    
                 
                    
                 
 
         
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号