Thinker

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Thinker

Forum for story


    【ADD/EDIT页面】-在ADD/EDIT页面删除后,DataGridView的刷新问题

    markeloff
    markeloff
    无尽星空


    帖子数 : 326
    积分 : 5426
    威望 : 0
    注册日期 : 2011-09-06
    年龄 : 35
    地点 : Singapore

    【ADD/EDIT页面】-在ADD/EDIT页面删除后,DataGridView的刷新问题 Empty 【ADD/EDIT页面】-在ADD/EDIT页面删除后,DataGridView的刷新问题

    Post by markeloff 2011-09-20, 4:09 pm

    Private Sub pShowViewMode()
    If vDs01City.Tables(0).Rows.Count < 1 Then Exit Sub
    Dim f01CityEdit As New f01CityEdit
    f01CityEdit.setEventAction("VIEW")
    f01CityEdit.setEventCode(Me.dgv01City.Item("Code", dgv01City.CurrentRow.Index).Value() & "")
    f01CityEdit.ShowDialog()

    Select Case vpSource
    Case "AddNew" : vpSource = "" : Call btnAdd_Click(New Object, New System.EventArgs)
    Case "Delete" : vpSource = "" : Call btnRefresh_Click(New Object, New System.EventArgs)
    End Select
    If dgv01City.Enabled Then dgv01City.Select()
    End Sub

      Current date/time is 2024-11-25, 4:22 pm