Thinker

Personal e-notepad


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

    markeloff
    markeloff
    无尽星空

    帖子数 : 244
    积分 : 3533
    威望 : 0
    注册日期 : 2011-09-06
    年龄 : 31
    地点 : Singapore

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

    Post by markeloff on 20/09/11, 09:09 am

    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 17/02/20, 11:07 am