skip to main | skip to sidebar

Matters Most

Let us find out answers for commonly asked IT questions…

Tuesday, January 03, 2006

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
Posted by Parkskip at 5:58 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2008 (1)
    • ►  March (1)
  • ►  2007 (2)
    • ►  October (1)
    • ►  June (1)
  • ▼  2006 (41)
    • ►  November (1)
    • ►  October (2)
    • ►  September (2)
    • ►  August (1)
    • ►  July (2)
    • ►  May (2)
    • ►  April (3)
    • ►  March (10)
    • ►  February (8)
    • ▼  January (10)
      • In C#, I take an entity and serialize it to XML an...
      • Is there another way I can create the SSL certific...
      • Calculate the Last Logon Time in Windows 2003
      • Service Pack 1 (SP1) for ADAM
      • How to express time in ISO 8601 format?DateTime my...
      • Is there a way to get DataTable from DataView? I a...
      • My ASP.NET form is many screens long. After user p...
      • When ADSI binding fails, can the program know that...
      • Native XML Web Services for SQL Server 2005
      • URL Rewriting in ASP.NET
  • ►  2005 (28)
    • ►  December (11)
    • ►  November (17)

Links

  • MIT: Tech Review

About Me

Parkskip
View my complete profile