How to make the data in the DataTable automatically change when there is the Insert, Update or Delete.

my code like this:
VB.NET Code:
  1. Imports System.Data
  2. Imports System.Data.OleDb
  3.  
  4. Public Class frmSupplier
  5.  
  6.     Dim dt As New DataTable
  7.  
  8.  
  9.     Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  10.         Me.WindowState = FormWindowState.Maximized
  11.     End Sub
  12.  
  13.     Sub setData()
  14.         Try
  15.  
  16.             Dim sql As String = "select vendor_id,vendor_name,address,phone from inv_t_vendors order by vendor_id"
  17.             dt = ggDB.SelectRecordToDT(dbConn, sql)
  18.  
  19.             dg.DataSource = dt
  20.  
  21.         Catch ex As Exception
  22.             ERRDesc(ex)
  23.         End Try
  24.  
  25.  
  26.     End Sub
  27.  
  28.     Private Sub cmdRefresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRefresh.Click
  29.         setData()
  30.     End Sub
  31.  
  32.     Private Sub tFilter_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tFilter.TextChanged
  33.         ' filter data
  34.     End Sub
  35.  
  36.  
  37.     Function AddData()
  38.         'load form entry
  39.         ' refresh data
  40.     End Function
  41.  
  42.     Sub ModifyData()
  43.         'load form entry
  44.         ' refresh data
  45.     End Sub
  46.  
  47.     Sub DELETEData()
  48.         ' delete data
  49.         ' refresh data
  50.     End Sub
  51. End Class

I want the data in a DataTable is changed according to the data on the actual database.

whether I should call my method setData() at AddData, ModifyData & DeleteData for getting the data at this time.


thank you