myDataGridView(columnIndex, rowIndex) = New DataGridViewButtonCellYou can handle the CellContentClick event of the grid, which will be raised whenever the user clicks a button in a cell. You use the `e` parameter to determine what cell the button was in and then act accordingly.
every button per product is containing different code
If I ask a question I'm asking it for a reason.It would help if you actually read what was being posted. In post #2 I gave you a choice. Do you want a column of buttons or just a single button in a specific cell?