Hello!
I have a problem with my grid. I charge all data in the grid correctly, i try to do a row update and if I change focus in other row or another control, the BeforeRowUpdate event fires once with any problem. But if i change focus in a UltraTextBox, the BeforeRowUpdate Event executes twice and I can't find the reason why.
If anyone has any idea, please tell me.
David
Hello David,
Thank you for contacting. I believe you are talking about UltraTextEditor instead of UltraTextBox.
In order to understand the issue I setup a test sample of UltraGrid with TextBox and UltraTextEditor both and hooked up BeforeRowUpdate event and seems I am not able to reproduce the issue. BeforeRowUpdate event fire only once for me.
Here is my sample attached for your reference. If this is not the correct demonstration of the issue then feel free to modify and send me back for further investigation.
Regards,
7652.WindowsFormsApplication23.zip
Hello,
I was talking about UtraTextEditor, sorry about that.
I've modify your project to try to find a solution. The main problem is when the UpdateMode is UpdateMode.OnRowChangeOrLostFocus. I validate the rowdata and if I find any validation error, it through a MessageBox. Is in that moment, when the BeforeRowUpdate Event fires again, but only if I change focus on UltraTextEditor
You can see in the project, that I just write a MessageBox.Show into BeforeRowUpdate Event, and the event fires twice if you change focus into UltraTextEditor.
Looks like your attachment dint come through . To reduce the size of the project delete the Bin folder from the project ,Zip it and re attach it.
ExampleWithError.zip
Thank you for sharing the sample , I am able to reproduce the behavior you described .
I have logged a bug 274387 into our internal bug tracking system and created a private case C-00224973 for you to link that bug.
You can access the private case from your infragistics Account-> support->My Cases section.
Let me know if you have further question or concern.
Thank you.