Search code examples
formsgridaxaptax++dynamics-ax-2012

How to delete empty rows from Grid in my Form?


I use to fill my StringEdit a simple displayMethod.

This method selected to see some records from myTable and discard others , this method work well, but, in my Grid I see the empty records-rows(that would be the record discarded).

For to fill my StringEdit I used this dispaly method :

display myEXDTypeString nameFIeld()
{
MYTable mineTable;
myEXDTypeString name;

while select mineTable
   where this.FieldtoUse== "Value"
name = this.NameFIeld;
return name;
}

There's a way to delete the empty rows? In my Grid

I have a Lesf site state , I want to have the right situation:

enter image description here

Thanks all! Enjoy


Solution

  • I solved my problem: the cause is the Form DataSource relation. OuterJoin Split my Lines.

    Thanks all, enjoy!