Thursday, October 27, 2011

Asp.net How to hide columns in DetailsView control

Asp.net How to hide columns in DetailsView control?

This can be done via code in the page load event.

protected void Page_Load(object sender, EventArgs e)
{
DetailsView1.Fields[2].Visible = false;
}

No comments:

Post a Comment