StrataFrame Forum

Error message not showing

http://forum.strataframe.net/Topic23911.aspx

By Kirk M Sherhart - 7/23/2009

I have a DevExpress Grid and LookupEdit bound to a BBS/BO. A Grid column is bound to the same field as the standalone LookupEdit. If a broken rule is raised for the field, the ErrorProvider icon/message appears on the grid's column, but not on the standalone LookupEdit. How can I get the error msg/icon to appear in both places?



P.S. Everything works OK if I use an SF-inherited comboBox instead of the LookupEdit.


By Peter Jones - 7/23/2009

Hi Kirk,



I presume this is because SF doesn't support propergating broken rules to Dev Express lookup edit controls - just to the DX Grids. If this is so you could try using the DX GridLookUpEdit control.



Cheers, Peter
By Trent L. Taylor - 7/24/2009

The difference is the support of IBindingList. If you are using native SF data binding, then it would work. If you are binding via a BBS then it would not. You can always add an error provider to the dialog and set it manually in a worst case scenario by handling the BusinessRulesChecked event of the BO.