Hi friends,
You should use this code in code behind then you can able to add column value in gridview.
foreach (GridViewRow Itemvalue in GridView1.Rows)
{
string getFirstColValue = Itemvalue.Cells[0].Text;
Itemvalue.Attributes.Add("id", getFirstColvalue );
}
than u.