When in insert mode detailsview, there are some pa开发者_开发知识库rameters that I would like to disable or hide. The columns are autogenerated.
Doesn't work:
DetailsView3.Rows(5).Visible = False
or
DetailsView3.Rows(5).Enabled = False
I'm lost.
X.X
Do it after you databind.
In C#:
protected void DetailsView2_DataBound(object sender, EventArgs e)
{
if (DetailsView2.CurrentMode == DetailsViewMode.Insert)
{
DetailsView2.Rows[5].Visible = false;
}
}
精彩评论