If you have many objects as Student (For example student1, student2, ...)
Set the tag of buton = specific student when the buttons are being generated.
Edit1.Tag = student1;
Delete1.Tag = student1;
Edit2.Tag = student2;
Delete2.Tag = student2;
Now, when you click on edit or delete, then you know that which button is clicked.
In Button_Click event:
Student selectedItem = (Student)sender;