I still have some problems with the validating event.
I don''t have the issue with the example, because the event handling is quite simple. However, in the project I am working on, we implemented a lot events, and the validating() event of the grid is not raised when I clicked on other controls (like button..) in the form. Do you have some idea on it?
Thanks.
Hui
>
>I figured it out. When the grid control is added at runtime, set tabindex = 0 will raise the validating event when move the focus out of this grid control
>
>>Thanks, Calvin.
>>Actually yesterday after I sent my example code, I tried the Validating event, it worked for me.
>>
>>However, when I merge this code to our project. The validating was not raised if clicking other control on the form.
>>
>>I will try to figure out why, and may come back to you later.
>>
>>Hui
>>
>>>Hi Hui,
>>>
>>>Try handling the Grid’s Validating event to see if that helps. Attached a sample.
>>>
>>>Regards,
>>>Calvin.
40795.zip