Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Database
Database General Discussion
creating a dataset
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="mzim, post: 6903, member: 62"] [code] Dim ds As New DataSet() Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ds.Tables.Add(New DataTable("dt")) ds.Tables(0).Columns.Clear() ds.Tables(0).Columns.Add(New DataColumn("truckID")) ds.Tables(0).Columns.Add(New DataColumn("Company")) ds.Tables(0).Columns.Add(New DataColumn("Typeof")) End Sub 'populating a data to your datatable. Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dr As DataRow = ds.Tables(0).NewRow dr(0) = Me.TextBox1.Text dr(1) = Me.TextBox2.Text dr(2) = Me.TextBox3.Text ds.Tables(0).Rows.Add(dr) ListBox1.Items.Add(TextBox1.Text) Me.cleartextbox() End Sub [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Database
Database General Discussion
creating a dataset
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom