S
sck10
Hello,
I have a LinkButton that I use to open a FormView in ReadOnly mode
"ShowList", and a LinkButton to open the same FormView in the Insert mode
"NewRecord". If the user clicks "ShowList" then a GridView opens up and
they can then select a record to view the record in the FormView. If they
select the "NewRecord" LinkButton, the same FormView opens in Insert mode.
The problem that I am having is that when the user clicks the "NewRecord"
LinkButton to open the form in Insert mode and then click the "ShowList"
LinkButton. The GridView will open, but when I select a record to view, the
FormView doesn't show. I have to re-select the "NewRecord" LinkButton and
then click the "Cancel" button at the bottom of the FormView.
Once I do this, the FormView will work properly in the ReadOnly mode. I
need to show both LinkButtons, so my question is how can I call the cancel
Insert mode event if a user clicks on a LinkButton before canceling the
Insert view?
--
Thanks in advance,
sck10
Protected Sub lbtnCustRev_Command(ByVal sender As Object, ByVal e As
CommandEventArgs)
If e.CommandName = "ShowList" Then
Me.fvCustRev.ChangeMode(FormViewMode.ReadOnly)
ElseIf e.CommandName = "NewRecord" Then
Me.fvCustRev.ChangeMode(FormViewMode.Insert)
End If
End Sub
I have a LinkButton that I use to open a FormView in ReadOnly mode
"ShowList", and a LinkButton to open the same FormView in the Insert mode
"NewRecord". If the user clicks "ShowList" then a GridView opens up and
they can then select a record to view the record in the FormView. If they
select the "NewRecord" LinkButton, the same FormView opens in Insert mode.
The problem that I am having is that when the user clicks the "NewRecord"
LinkButton to open the form in Insert mode and then click the "ShowList"
LinkButton. The GridView will open, but when I select a record to view, the
FormView doesn't show. I have to re-select the "NewRecord" LinkButton and
then click the "Cancel" button at the bottom of the FormView.
Once I do this, the FormView will work properly in the ReadOnly mode. I
need to show both LinkButtons, so my question is how can I call the cancel
Insert mode event if a user clicks on a LinkButton before canceling the
Insert view?
--
Thanks in advance,
sck10
Protected Sub lbtnCustRev_Command(ByVal sender As Object, ByVal e As
CommandEventArgs)
If e.CommandName = "ShowList" Then
Me.fvCustRev.ChangeMode(FormViewMode.ReadOnly)
ElseIf e.CommandName = "NewRecord" Then
Me.fvCustRev.ChangeMode(FormViewMode.Insert)
End If
End Sub