Hi,
i'm using an UltraGrid with
DisplayLayout.Override.AllowAddNew = AllowAddNew.FixedAddRowOnTop;
Now, if i add some new rows (just type and press enter) and then i press cursor-down, to get to the first data row, UltraGrid is jumping to the second row o.O
To Reproduce:
- Create a new Form
- Put an UltraGrid on it
- call this function to set the options:
public void initTest(UltraGrid dfG) { dfG.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn; dfG.DisplayLayout.GroupByBox.Hidden = true; dfG.DisplayLayout.Override.AllowAddNew = AllowAddNew.FixedAddRowOnTop; dfG.DisplayLayout.Override.AllowDelete = DefaultableBoolean.True; dfG.DisplayLayout.Override.CellClickAction = CellClickAction.CellSelect; dfG.DisplayLayout.Override.CellMultiLine = DefaultableBoolean.False; dfG.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.SortMulti; dfG.DisplayLayout.Override.RowSizing = RowSizing.AutoFree; }
- now enter a few rows
- now try to go down with Cursor... you will jump one row too far
Is there a work-around for that?
Hello,
I believe I have identified the behavior simply by pressing tab off of the AddNewRow with FixedAddRowOnTop set. My sample attached already has a row or two. Can you please confirm that this is the only way you have reproduced this behavior?
and here's a video showing the Tab-Problem.
Tab on the last cell of the AddRow will bring you to the 3rd Data-Row (if you typed in something). Not on the Video: If you don't type anything (only F2, then Tab thru), you will land on the 2nd Data-Row (after Tab on the last cell in AddRow)
That Tab-Thing is a different problem because i would expect to land on the first cell of the AddRow - to be able to add another Row quickly. But lets first concentrate on one problem at a time :)
Oh dear... i didn't see THAT problem before you described it.
That's another Problem - right! But it's more strange than my Cursor-Down-Problem.
This "Tab"-Problem behaves differently:
- Add some Rows (F2, typing, pressing Enter). 4 or 5
- Now add a new Row by typing in the first column, then pressing tab until you leave the last column of the AddRow.
- As i did it the first time (right after adding a few rows with Enter), the Grid jumps out of the AddRow into the the 3rd Data-Row o.O
- Then i did it again (set focus to first column in AddRow, F2, typing, pressing Enter until i left AddRow) - now it jumps to the 2nd Data-Row
(i've tested this with Mike's Project which i changed to Infragistics 14.2 by replacing the references - His project was using 14.1)