Hi. I'm upgrading the version of Infragistics controls in my application from 6.2 to 10.2. Overall, everything has gone well. I'm having one peoblem though.
Sometimes, when I click on the template add row, the grid adds 10+ rows to the grid. And all of the rows are in edit mode. I cannot reproduce this on a regular basis. It just seems to randomly occur. I can't ship the application with this bug. At this point, it seems to be an Infragistics problem.
Does anyone know of a bug in the grid that might cause this?
Thanks.
My best guess is that something in your code is causing the grid to get stuck in a loop. Clicking on the TemplateAddRow fires certain events on the grid, and you must be doing something in one of those events that is causing another TemplateAddRow to be created, which fires the event(s) again, which causing another TemplateAddRow, etc.
See which events of the grid you are currently handling and try commenting them out one at a time to see if the problem goes away.
Or... when the problem happens, use CTRL+BREAK to pause the execution of the program and look at the call stack to see what event(s) are firing repeatedly.
No, the answers so far haven't helped. Here are some pics to demo the problem:
Here's the grid brfore the problem:
And here's what the gris looks like after I click on the template add row:
At this point, all I can do is hit Esc and cancel the add row action. The problem seems to have something to do with the grid not being able to save the last record (or it thinks it isn't saved). When I click on the add data row, the bug occurs. If I delete the last row entered, the problem goes away. That seems to be the only way out of this situation.
This is very different than the version 6.2 grid I was using before. And ideas? I'm lost.
Hello,
I am just checking about the progress of this issue. Did you solve your issue accordingly to the information that Michael provided you?
Let me know if you need any further assistance.
I've never heard of anything like that. It's not actually possible for more than one row in the grid to be in edit mode - what exactly do you mean by that?
Just as a wild guess, it sounds like maybe something is going wrong with the mouse events - like the grid is getting click events on each new template add row as it gets created. I've seen issues where mouse events get corrupted like that when your application uses Application.DoEvents statements, for example.
Another possibility is that something in the code is causing - but the only way that should happen is if your code is setting AddRowModifiedByUser to true in code.