Detailsview updating...

asp.net Thailand
  • 13 years ago

    Hai Friends, I have populated a detailsview in code behind. When I try to edit, it needs to click twice... Y this happen? If you have any idea, pleaz help me... i am giving code here.

    Protected Sub dtl_smple_ModeChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewModeEventArgs) Handles dtl_smple.ModeChanging

    If e.NewMode = DetailsViewMode.Edit Then

    dtl_smple.ChangeMode(DetailsViewMode.Edit)

    Else

    dtl_smple.ChangeMode(DetailsViewMode.ReadOnly)

    End If

    End Sub

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The question of whether computers can think is just like the question of whether submarines can swim.” - Edsger W. Dijkstra