Hi,
Assign the button a commandname...
and subscribe the rowcommand event of gridview...
void CustomersGridView_RowCommand(Object sender,
GridViewCommandEventArgs e)
{
// If multiple buttons are used in a GridView control, use the
// CommandName property to determine which button was clicked.
if(e.CommandName=="Add")
{
// Convert the row index stored in the CommandArgument
// property to an Integer.
int index = Convert.ToInt32(e.CommandArgument);
// Retrieve the row that contains the button clicked
// by the user from the Rows collection.
GridViewRow row = CustomersGridView.Rows[index];
}
BEST OF LUCK
--------------
Munna
www.munna.shatkotha.com www.munna.shatkotha.com/blog www.shatkotha.com