G
Giorgio Parmeggiani
Hi
I have a GridView and a FormView connected among them through a relationship
master/detail
The FormView has an ObjectDataSource with a ControlParameter connected to
the SelectedValue of the Grid:
<asp:ControlParameter ControlID="gridRichieste" Name="id" PropertyName="SelectedValue"
Type="Int32" />
When i click on the select button of the GridView all it correctly works
and the FormView correctly visualizes the detail.
But when I press the button of Edit of the FormView, the FormView disappears,
I have realized that, to the loading method of the detail, defined in the
ObjectDataSource, the parameter SelectedValue is passed to 0.
If I perform a formView.DataBind () in the event OnLoad of the page to every
postback, the FormView is also visualized correctly pressing the button of
Edit, but this is not a solution because to always perform the manual DataBind
determines other problems.
Besides if, in phase of debug, I stop the execution in the method OnLoad
of the page, immediately after having pressed Edit on the FormView, and I
visualize in the window of debug the FormView properties, continuing the
execution the FormView is correctly visualized!
Thank in advance
Giorgio
I have a GridView and a FormView connected among them through a relationship
master/detail
The FormView has an ObjectDataSource with a ControlParameter connected to
the SelectedValue of the Grid:
<asp:ControlParameter ControlID="gridRichieste" Name="id" PropertyName="SelectedValue"
Type="Int32" />
When i click on the select button of the GridView all it correctly works
and the FormView correctly visualizes the detail.
But when I press the button of Edit of the FormView, the FormView disappears,
I have realized that, to the loading method of the detail, defined in the
ObjectDataSource, the parameter SelectedValue is passed to 0.
If I perform a formView.DataBind () in the event OnLoad of the page to every
postback, the FormView is also visualized correctly pressing the button of
Edit, but this is not a solution because to always perform the manual DataBind
determines other problems.
Besides if, in phase of debug, I stop the execution in the method OnLoad
of the page, immediately after having pressed Edit on the FormView, and I
visualize in the window of debug the FormView properties, continuing the
execution the FormView is correctly visualized!
Thank in advance
Giorgio