Hi, please advice me how i can raise grid validation. Now it is validating only on lost focus.
Hello,
As far as I understand you want to force Validating event to be forced, you could do this on the same way as for any other Windows Forms Control, you could call Validate() and ValidateChildren() method of the from.
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.validate(v=vs.110).aspx
http://msdn.microsoft.com/en-us/library/ms158374(v=vs.110).aspx
Please let me know if you have any further questions.
Yes, you undestand me right, but if i use Validate() or ValidateChildren it raise Validation of many controls on forms. Is it possible to raise only grid validation?
Hello ,
If you’ve subscribed for validating event you could use code like the following in order to call the delegate:
CancelEventArgs arg = new CancelEventArgs(false);
ultraGrid1_Validating(ultraGrid1, arg);
also since Validating/Validated occurs after component lose the focus you could force the force to be moved to other component. There is nothing specific with UltraGrid, the approach is the same as you would do this with any other WindowsFroms control.