I have an UltraWinGrid 12.1 that works perfectly when the add row is on top. I want to give the user the option to switch the add row to the bottom. However, when they do that the behavior of the grid changes like this:
As soon as any key is entered into the add line, a new add row is shown (two lines with asterisks), confusing the user. This is different than when add row is on top, where you only have one asterisk line.
The only code that gets executed to move the add row to the bottom is this line:
grdGrid.DisplayLayout.Bands(0).Override.AllowAddNew = AllowAddNew.TemplateOnBottom
I should note that once this code is executed and you move the add row back to the top the double asterisk now appears on the top too! I can only clear it by leaving the screen and returning to it, initializing the whole thing. I analyzed the differences between the two saved grid layout XML files and the only difference if the value of <AllowAddNew>6 (for the bottom) versus 7 (for the top).
Hello Ted,
Thank you for contacting Infragistics. I just tested 12.1, and 18.1 and both behave the same. From what I can recall we always had a stationary add-row present above the one the end user is actually typing. As soon as a key press is made a new record is added to the grid. Because the add-row the user is typing in is actually an uncommitted record in the UltraGrid. We even include a TemplateOnTopWithTabRepeat option that lets the end user press tab, when in the last cell of the current add-row, and proceed back to the add-row. You might be interested in using FixedAddRowOnTop and FixedAddRowOnBottom. This reduces the extra add-row you see.
To summarize, both top and bottom settings should behave the same. Let me know if you have any questions.
Thank you for your reply Michael. I've been using Infrigistics grids for years and never had more than one row with an asterisk until we started using the TemplateOnBottom. The way it has always worked for us is that the user clicks on the asterisk (add) row, and fills out all columns without another asterisk line ever appearing. When they are done adding the line they can tab past the end or press enter to commit the row and then a new empty asterisk line appears at the top. I will look into the FixedAddRowOnTop/Bottom and get back to you. The weird thing to me is how the behavior of the top row add changes after only changing to AllowAddNew.TemplateOnBottom and then back to AllowAddNew.TemplateOnTop.