ho risolto con il seguente codice

protected void DetailsView1_PreRender(object sender, EventArgs e)
{
if (this.DetailsView1.CurrentMode == DetailsViewMode.Insert)
{
TextBox txtname = this.DetailsView1.FindControl("TextBox7") as TextBox;
txtname.Text = utenteid;
}
if (this.DetailsView1.CurrentMode == DetailsViewMode.Edit)
{
TextBox txtname = this.DetailsView1.FindControl("TextBox7") as TextBox;
txtname.Text = utenteid;

}
}

dopo aver definito il campo utente della detailsview come templates fields e configurando l'access data source con un where legato alla variabile session utente