Search code examples
axaptadynamics-ax7

Dynamics AX 7 Grid line defaulting


I am creating a new grid in AX 7. Does anybody know how to prevent the grid from creating a "default line"?

Here is what it looks like when I open the form with an empty grid: Empty form with default line

Here is what I would like it to look like: What it should appear on opening

I've played around with the insert method on the table, the init method on the form, and some methods on the grid control but I can't seem to find a proper solution for this.


Solution

  • It should be a property on the DataSource that is attached to the grid. InsertIfEmpty=No. See screenshot.

    Screenshot