Is there a way to get DataTable from DataView? I am creating a DataView from a DataTable and applying some filters and sorting to Dataview. But I want to have DataTable out of this new Dataview (filterd/sorted).
In .NetFramework v1.0/v1.1 you can do:
Dim dt2 As DataTable = dv.Table.Clone() ‘ copies the structure
For I = 0 To dv.Count – 1
dt2.ImportRow(dv.Item(I).Row) ‘ copies a row
Next I
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment