This code shows how to select data table rows
Private Sub btnSelect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSelect.Click 'As a precautional step, to avoid errors, i am reloading the DataTable.. 'Using a Data adapter to load data into the DataTable.. 'You can refer these urls: 'http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=4790&lngWId=10 or 'http://www.a1vbcode.com/app-3771.asp for information to use DataAdapters.. DA = New OleDb.OleDbDataAdapter("Select * from Employees", CN) DT = New DataTable DA.Fill(DT)
'initializing command builder, this will be used later.. CMB = New OleDb.OleDbCommandBuilder(DA) End Sub
|
No responses found. Be the first to respond and make money from revenue sharing program.
|