dynamic button id

Hello
Is it possible via syntax to dynamically give a button a unique id? I am creating a button per line in the grid onRowCreate, however elsewhere I need to disable all but the last row.

When you are creating a button you may add a unique id to it.