Du bist hier: Snippet-Verzeichnis » Microsoft .NET (154)
Sprache:

Creating a DataSet

Sprache: English
Programmiersprache: VB.NET
Veröffentlicht von: Dennis Pallett [nicht registriert]
Letzte Änderung: 09.05.2006
Aufrufe: 1491

Beschreibung

This codesnippet shows you how to dynamically create a DataSet.

Code

1 Dim ds As DataSet 2 Dim tbl As DataTable 3 Dim col1,col2 As DataColumn 4 5 ds = New DataSet() 6 tbl = New DataTable("mytable") 7 col1 = New DataColumn("mycolname1", Type.GetType("System.Int32")) 8 col2 = New DataColumn("mycolname2", Type.GetType("System.String")) 9 10 tbl.Columns.Add(col1) 11 tbl.Columns.Add(col2) 12 13 ds.Tables.Add(tbl)

Noch kein Kommentar vorhanden

Dieses Snippet kommentieren

Name *  

E-Mail (wird nicht angezeigt) *    

Website  

Kommentar *  

Sicherheitscode Sicherheitscode *    

RSS