G
Guest
I need to dynamically set the ReadOnly value in a BoundField in a
DetailsView. The DetailsView is generated from a GridView selection and has
both Edit and New buttons. I need to be able to set the readonly property on
one of the fields depending on the user's group. I have tried to access the
property by Detailsview1.Fields[3].Readonly and by
Detailsview1.FindControl("Dept").Readonly but neither exist. Is it even
possible to set the readonly property of a BoundField in the code-behind?
DetailsView. The DetailsView is generated from a GridView selection and has
both Edit and New buttons. I need to be able to set the readonly property on
one of the fields depending on the user's group. I have tried to access the
property by Detailsview1.Fields[3].Readonly and by
Detailsview1.FindControl("Dept").Readonly but neither exist. Is it even
possible to set the readonly property of a BoundField in the code-behind?