I found the solution:
foreach (DataControlFieldCell cell in e.Row.Cells)
{
foreach (Control control in cell.Controls)
{
LinkButton button = control as LinkButton;
if (button != null && button.CommandName == "Delete")
button.OnClientClick = "return confirm('Biztos benne, hogy törölni kívánja a kiválasztott célt?');";
}
}
Anyway, thx everybody who read it, and hopefully, it will help anybody who has the same problem.