<pre lang="c#">
protected void Button1_Click(object sender, EventArgs e)
{
foreach (GridViewRow gr in GridView1.Rows)
{
string name = gr.Cells[0].Text;
string surname = gr.Cells[0].Text;
string age = gr.Cells[0].Text;
string score = gr.Cells[0].Text;
string finalMsg = "DEAR MR. " + name + " " + surname + ".YOUR AGE IS " + age + " . AND YOUR FINAL SCORE IS " + score + " . SINCERELY..";
msgSend(finalMsg );
}
}
Use this code.It will work.