Question

Grid - How to prevent adding new row automaticly

  • 19 April 2024
  • 1 reply
  • 48 views

Userlevel 5
Badge +1

 

Hi group,

When cursor reaches the last editable cell, it creates a new row

Do you know if it's possible to prevent adding new row automaticly at the end of a row (when pressing enter) in grids of acumatica?

 

People have "Insert" right(not delete), they can Cancel the row after an unvolontary inserting but it's little bit anoying

 

Thanks =)

 


1 reply

Userlevel 3
Badge

Hi @raphrf . try customizing the row inserting event. Something like this

RowInserting(PXCache sender, PXRowInsertingEventArgs e)
        {
            if (e.Row == null) return;
            Test row = (Test)e.Row;
            if (row.SomeId == null)
            {
                e.Cancel = true;
            }
        }

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved