Skip to main content
Question

Add to grid only one row

  • October 25, 2026
  • 1 reply
  • 15 views
  • Translate All

Forum|alt.badge.img+2

How to enable add to grid only one row for some conditions ?

1 reply

Forum|alt.badge.img

Hii, ​@bihalivan15,

Acumatica has no grid property that limits a grid to one row. You limit it in the graph code, at two levels:

  1. UI level: in the RowSelected event of the header (parent) DAC, set AllowInsert = false on the detail view. Do this when the condition is true and one row already exists. The grid’s Add Row (+) button is then disabled.
  2. Server level: in the RowInserting event of the detail DAC, cancel the insert and show an error if a row already exists. This also stops extra rows coming from the Web API, Import Scenarios, Copy/Paste, or code.
Translate