Multiple buttons with two grids

Hi,

I have an AX 2012 form with an actionpaneTab containing one CommandButton:edite and one CommandButton:DeleteButton, but there are two updatable grid in my form with the some datasource but with two differente rang

My first question is how can I tell to my two buttons which grid to manipulate ?

For now the two buttons only controls the first grid. So how can i edite or delete a line in the second grid by pressing NewButton or DeleteButton ?

i make one solution : i have create another ActionPane for the second grid so that it’s clear that each grid has its own associated buttons. On the ActionPane for the second grid, i set it Style property to “Strip” and i have some empty space

my second question: how can i eliminate the emplty space or if there is another way to do that

Thanks.