Following example explains the to set value to Item Template controls-----
protected void gridView1_RowDataBound(object sender,GridViewRowEventArgs e)
{
Label lblUserID= (Label)e.Row.FindControl("UserID");
lblUserID.Text="Sample Text";
}
this will definitely work....