Add delete button to child table

how to add delete button to child table so i can delete rows when i check them

@hayyan_daood you mean this red button ?

@bahaou yes

but why you want to add that red delete button becuase it will automatically comes when you checked the items rows.

it does not comes automatically when i check rows in doctype i have created .
is there any configuration i need to do in order to show this button .

can you share the screenshot?

@Rehan_Ansari .
screenshot of the doctype ??

yes. where you checked the rows and delete button is not coming.

i am sorry , my bad .
it shows up after refresh the page

@Rehan_Ansari nut where can i find this trigger in code ?