As you mentioned above you have added two buttons. Like:
apr.Text = "APPROVE";
rej.Text = "REJECT";
apr.CommandName="Approve";
rej.CommandName="Reject";
GVDetails.Controls.Add(apr);
GVDetails.Controls.Add(rej);
Now go to the grid view RowCommand event and filter your commands. Like:
protected void gvMyGrid_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Reject")
{
}
else if (e.CommandName == "Approve")
{
}
}
Try this.. Accept the answer if you like..
All the best.:)