Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
1308 | Oct 15,2002 02:02 PM UTC | Oct 16,2002 03:36 PM UTC | WinForms | 4 |
![]() |
Tags: FAQ |
Dim dtable1 As New DataTable()
Dim dtable2 As New DataTable()
OleDbDataAdapter1.Fill(dtable1)
Dim dc as DataColumn = dtable1.Columns(0);
dtable2.Columns.Add(New DataColumn(dc.ColumnName, dc.DataType))
dim dr1, dr2 as DataRow
Foreach dr1 in dtable1.Rows
dr2 = dtable2.NewRow()
dr2(0) = dr1(0)
dtable2.Rows.Add(dr2)
next
> Dim dtable1 As New DataTable()
> Dim dtable2 As New DataTable()
> OleDbDataAdapter1.Fill(dtable1)
>
> Dim dc as DataColumn = dtable1.Columns(0);
>
> dtable2.Columns.Add(New DataColumn(dc.ColumnName, dc.DataType))
>
> dim dr1, dr2 as DataRow
>
> Foreach dr1 in dtable1.Rows
> dr2 = dtable2.NewRow()
> dr2(0) = dr1(0)
> dtable2.Rows.Add(dr2)
> next
>
>
> This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.