断点到popupContainerEdit_QueryDisplayText(object sender, QueryDisplayTextEventArgs e),一直循环。以为是bug。
查官网知道了原因。
http://www.devexpress.com/Support/Center/p/B196390.aspx
This event is raised when an editor is repainted to get the display text from value. If you simply set the breakpoint inside it, it will constantly stop there for sure, because it tries to repaint it when the form with the control appears, but is interrupted by the Visual Studio debugger. So, it tries again and again. When it works without being interrupted by a breakpoint, this event is raised only when it needed to repaint the text in the control.
Thanks,
Ted