EditRow from an external button

Hi guys,

I was trying to edit rows of different data grids from a single button and I used the approach as below.

this.grid0.editRow(${shopresult.find(p => p.ABC)});
this.grid1.editRow(${shopresult.find(p => p.XYZ)});

Although, this approach works only if the ABC and XYZ has values coming in. How do I get it to work if the value for ABC or XYZ is null in the DB.

Figured it out :slight_smile:
For anyone wondering how to do this

this.grid1.editRow(${shopresult.find(p => p.XYZ)} || ${shopresult.find(p => p.XYZ == null)}); is the solution