CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 31 Aug 2025 15:21:08 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080328194550
location: https://web.archive.org/web/20080328194550/https://www.daniweb.com/code/snippet815.html
server-timing: captures_list;dur=0.746977, exclusion.robots;dur=0.027947, exclusion.robots.policy;dur=0.011969, esindex;dur=0.014499, cdx.remote;dur=58.822792, LoadShardBlock;dur=289.596438, PetaboxLoader3.datanode;dur=102.809586, PetaboxLoader3.resolve;dur=48.661411
x-app-server: wwwb-app211
x-ts: 302
x-tr: 381
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app211; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 31 Aug 2025 15:21:08 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Fri, 28 Mar 2008 19:45:49 GMT
x-archive-orig-server: Apache/2.2
x-archive-orig-x-powered-by: PHP/5.1.6
x-archive-orig-set-cookie: bblastactivity=0; expires=Sat, 28-Mar-2009 19:45:49 GMT; path=/; domain=.daniweb.com
x-archive-orig-cache-control: private
x-archive-orig-pragma: private
x-archive-orig-vary: Accept-Encoding,User-Agent
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 28 Mar 2008 19:45:50 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 28 Mar 2008 19:45:50 GMT", ; rel="memento"; datetime="Fri, 28 Mar 2008 19:45:50 GMT", ; rel="next memento"; datetime="Tue, 13 May 2008 01:15:08 GMT", ; rel="last memento"; datetime="Mon, 03 Aug 2009 11:15:15 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_2_20080328180707_crawl106-c/52_2_20080328194430_crawl104.arc.gz
server-timing: captures_list;dur=0.489227, exclusion.robots;dur=0.020102, exclusion.robots.policy;dur=0.009522, esindex;dur=0.010669, cdx.remote;dur=38.082767, LoadShardBlock;dur=181.179311, PetaboxLoader3.datanode;dur=155.996285, PetaboxLoader3.resolve;dur=122.104522, load_resource;dur=205.139078
x-app-server: wwwb-app211
x-ts: 200
x-tr: 509
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Convert DataView to DataTable - csharp
Convert DataView to DataTable
•
•
•
•

What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 302,143 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,629 IT professionals currently interacting right now! If you are in the IT industry or are just a technology enthusiast, you might find just what you're looking for in DaniWeb. Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Modernize Legacy Data with Sybase
Enables DataView to DataTable conversion
public static DataTable CreateTable(DataView obDataView) { if (null == obDataView) { throw new ArgumentNullException ("DataView", "Invalid DataView object specified"); } DataTable obNewDt = obDataView.Table.Clone(); int idx = 0; string[] strColNames = new string[obNewDt.Columns.Count]; foreach (DataColumn col in obNewDt.Columns) { strColNames[idx++] = col.ColumnName; } IEnumerator viewEnumerator = obDataView.GetEnumerator(); while (viewEnumerator.MoveNext()) { DataRowView drv = (DataRowView)viewEnumerator.Current; DataRow dr = obNewDt.NewRow(); try { foreach (string strName in strColNames) { dr[strName] = drv[strName]; } } catch (Exception ex) { Trace.WriteLine(ex.Message); } obNewDt.Rows.Add(dr); } return obNewDt; }
Post Comment