I've got a grid with:
The odd behavior I'm experiencing is that the row being added does indeed retain focus, however a new TemplateAddRow is being added and initialized incorrectly. The expected behavior is the same as when an update is triggered by trying to change the row (the row retains focus and the template add row is left unaffected)
Things I've tried:
Any ideas?
Hi,
fluxmunki said:a new TemplateAddRow is being added and initialized incorrectly
What exactly is incorrect about it?
Can you post a small sample project demonstrating the behavior you are getting?
What's incorrect is that it's being added at all. If the update ('add' in this case) of a template add row is cancelled then surely nothing else should really happen and it certainly shouldn't move onto creating the new row.
I had a look through the source as part of implementing my own workaround (based on handling KeyDown) and saw that in the grid's PerformAction method for CommitRow it calls activeRow.Update() and then proceeds to add a new template add row. The problem here is that Update() returns a bool to indicate if the update was cancelled; this return value is being ignored.
Unfortunately I'm up against a deadline at the moment so can't afford the time to create a sample project.