HeavenCore
Well-known member
Yo, got a databound form, which works ok, if i try entering a letter into a numeric field the textbox will not loose focus and locks out the rest of the form until i enter a numeric value etc. Is there a way of catching the validation error, for example "Please Enter A numeric Value" using a simple databinding property or will this have to be done programmatically?
any help would be cool
Regards
J
UPDATE: This problem was occuring on a drop down list bound to an Int Database attribute, the comboboxes are bound as follows:
Display Member: bound to a varchar(50)
Display Value: bound to an INT (an INT fk ID basically)
Selected Value: The forms current value
This does not work; however if i change Display member to the int then it does, so i'm guessing the databinding validation thing is looking at database, requesting an int, and the Combobox is trying to send a string? anybody got any ideas?
any help would be cool
Regards
J
UPDATE: This problem was occuring on a drop down list bound to an Int Database attribute, the comboboxes are bound as follows:
Display Member: bound to a varchar(50)
Display Value: bound to an INT (an INT fk ID basically)
Selected Value: The forms current value
This does not work; however if i change Display member to the int then it does, so i'm guessing the databinding validation thing is looking at database, requesting an int, and the Combobox is trying to send a string? anybody got any ideas?
Last edited: