I have a problem displaying a hidden control when I switch from Edit mode to ReadOnly mode in FormView.
When I switch back to ReadOnly mode from Edit mode I need to display a control (ShowMeLabel) based on a certain condition i.e. PreconditionLabel.Text="Show"
The code is below and it debugs fine.
Both ShowMeLabel & PreconditionLabel are found OK; PreconditionLabel.Text is set to "Show"; ShowMeLabel.Visible (according to debuggeris set to 'true'.
Yet when the Readonly form displayed after MyFormView_ModeChanged ShowMeLabel is still hidden.
(I have also tried ModeChanging with no success)
protected void MyFormView_ModeChanged(object sender, EventArgs e)
{
MyFormView.ChangeMode(FormViewMode.ReadOnly);//Shouldn't need but just to be sure force a change to ReadOnly
MyF ...
Go to the complete details ...