Link to home
Create AccountLog in
Avatar of PNKJ
PNKJ

asked on

Removing column from dataset

Is it possible to remove one column from dataset returned? alos hoe do you add rows to a datatable based on column name instead of column count.
I used this in my code
 ''Dim dr As DataRow
                    'For Each row As DataRow In lobj_Dataset.Tables(0).Rows
                    '    dr = dt.NewRow
                    '    For i As Integer = 0 To lobj_Dataset.Tables(0).Columns.Count - 1
                    '        dr(i) = row(i)
                    '    Next
                    '    dt.Rows.Add(dr)
                    'Next
                    lobj_Dataset.Tables.Add(dt.Copy)
ASKER CERTIFIED SOLUTION
Avatar of kdiederi
kdiederi

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer