add a linkbutton to the item template. Bind its CommandArgument property to the id of the record, set its CommandName property to something line "Delete", write an eventhandler for the ItemCommand event, check for e.CommandName to see if its "Delete". If its so, use the e.CommandArgument to get the ID of the row and perform the delete