Dear all,
my grid has an AddNewRow-Button (TemplateOnBottom) to let the user add rows. Whenever the user adds one a second is created directly afterwards. The first new row can be modified by the user, the second is modified on the fly controlled by the AfterCellUpdate-Event. The user cannot edit anything in the second new row. My problem is, that after the first user-added row (and the row created by the program) the AddNewRow-Button dissapears. But I like to give the possibility to add further rows. What I have to do to realize that?
Thanks in advance
Alex
Hello Alex,
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.
Hi Boris,
thanks for your answer. Adding new rows should not be done by klicking at the AddNewBox-Button, but only by klicking in the grey row marked with a star (RowSelectors). This star was the AddNewRow-Button I was talking about. Sorry for confusion. In your sample everything works quite fine. Two new lines are added and an additional grey line appears (again with a star). Clicking the new grey line adds again two new rows and a new grey line appears. Everything as desired.
But in my real project clicking the grey line adds two new rows, but no new grey line appears. Any ideas what the reason can be?
Best regards
It is very hard to guess out of the nothing. You might be hooking to some events on adding new rows or something like this. Would you be able to attach a small sample project reproducing this issue, I will be happy to take a look at it.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Hallo Boris,
I tried hard to reproduce the error but without sucess. In my special case I solved it by using the AddNewBox-Button. This works fine, although it is not the solution I desired. But at least it works.
Thank you.
Thank you for your feedback. I am glad to hear that you were able to get around this somehow.
I will still be happy, if you, in someway, manage to reproduce this behavior in the future, so I could take a look at it and examine it further.
Please feel free to let me know if a question about our toolset comes up on your mind.