Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
660
Using FixedAddRowOnTop - Cursor-down selecting second instead of first row
posted

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?
Parents
  • 29105
    Offline posted

    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?

    FixedRowOnTop.zip
Reply Children