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).Row s
' dr = dt.NewRow
' For i As Integer = 0 To lobj_Dataset.Tables(0).Col umns.Count - 1
' dr(i) = row(i)
' Next
' dt.Rows.Add(dr)
'Next
lobj_Dataset.Tables.Add(dt .Copy)
I used this in my code
''Dim dr As DataRow
'For Each row As DataRow In lobj_Dataset.Tables(0).Row
' dr = dt.NewRow
' For i As Integer = 0 To lobj_Dataset.Tables(0).Col
' dr(i) = row(i)
' Next
' dt.Rows.Add(dr)
'Next
lobj_Dataset.Tables.Add(dt
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.