Hi,
When ever you want to fire any control event inside gridview, then instead that control's event use gridview's OnRowCommand event.
In your case do following.
<asp:gridview id="YourGridID" runat="server" onrowcommand="YourGridID_RowCommand" ..="" xmlns:asp="#unknown">
<asp:templatefield>
<itemtemplate>
<asp:button id="Button2" cssclass="btnSkin" runat="server" text="Answer">
Width="117px" CommandName="GetRow" />
</asp:button></itemtemplate>
</asp:templatefield>
</asp:gridview>
protected void YourGridID_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "GetRow")
{
GridViewRow row = (GridViewRow)(((Button)e.CommandSource).NamingContainer);
Label lbl= (Label)row.FindControl("YourLabelID");
Label lbl1= (Label)row.FindControl("YourLabelID");
Label lbl2= (Label)row.FindControl("YourLabelID");
Label8.Text = lbl.Text;
Label10.Text = lbl1.Text;
Label12.Text = lbl2.Text;
}
}
Hope it helps.