|
-
Oct 3rd, 2005, 11:11 AM
#1
Thread Starter
Member
-
Oct 3rd, 2005, 07:50 PM
#2
Re: add Listbox Items to a DataSet or DataTable
Loop through all the items in the ListBox, create a NewRow for the DataTable and add the item's string value from the ListBox. Does this DataTable already exist? If not, you need to create a new DataTable and Add Columns first. I'd suggest reading up about the DataTable class and its members. Take a look at some of the tutorial links in my signature for ADO.NET information.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|