What is the difference between using Table with Dataset or without it ?
In this code I used Table directly without using DataSet. What is the difference between using Table with dataset or without it.
vb Code:
Dim sql As String = " Select NameP from Table1 "
Dim dp As New OleDbDataAdapter(sql, conn)
Dim Table1 As New DataTable
dp.Fill(Table1)
Form1.DataGridView1.DataSource = Table1
Re: What is the difference between using Table with Dataset or without it ?
answer is not straight forward
because it depends on what you wanted to do
for example here you are populating a datagrid there it ends
which requires a table
in fact the dataset is also contains t table, but it has some more extension of functionality
for which you need to go through the object model & method of the
ADO.net
just google & see in MSDN which is so heshup & meshup
not so easy to understand in one go
Re: What is the difference between using Table with Dataset or without it ?
There isn't enough difference between the two to bother trying to figure out the difference between the two. A dataset can hold multiple datatables. If you only need one table, then there pretty much isn't any need for a dataet.