473,499 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to fill a dataSet from to ComboBox

Ari
Hi I hope some body can help me. I'm new with Visual Basic .net. I'm trying
to fill a DataSet from to combo box but i do not how to do and i do not find
any information that expalin to me how to do.
What i want to do is that when the user selct the records from each combo
box he/she click on a botton to add that information to the Data Set.

thank
Jul 21 '05 #1
1 1516
Ari,

Did you know that there is a newsgroup

Microsoft.public.dotnet.language.vb

I think it is better for questions like this.

To give an anwer to your question in the simplest way of doing it.

You can fill the combobox using the designer and in that the property Item
(collection).

Then in the selected index change event you can get the selectedText or with
the combobox just the Text property.

Than comes the difficult because a dataset is a collection of tables which
is a collection of rows which is a collection of items I can not advice you
any furter.
It can be something as

ds.tables(0).rows(0)(0) = combobox.text

Than it is added to the first item in the first row in the first table from
the dataset.

I hope this helps?

Cor
Hi I hope some body can help me. I'm new with Visual Basic .net. I'm trying to fill a DataSet from to combo box but i do not how to do and i do not find any information that expalin to me how to do.
What i want to do is that when the user selct the records from each combo
box he/she click on a botton to add that information to the Data Set.

thank

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1225
by: Ari | last post by:
Hi, i creating a form where i need fill a dataset with records that come from two diferents Comboboxes, and the same time call information in the table that is relate with the information that are in...
2
1211
by: ken | last post by:
I would like to fill a combobox with the values of one column of the dataview I am using. When I set it up the way I expect it would be, I get every row in the combobox says: ...
6
1681
by: chreo | last post by:
Sorry for weird title and sorry for my English (I'm from Poland). This is the problem: I have form with many controls. There are three comboboxes - each should have table STREETS as DataSource....
4
1428
by: K R Lal | last post by:
Hello all, how can i fill the data to combo box from dataset please help me. regards lal
2
1875
by: Simon Verona | last post by:
I have a combobox that is contained within a user control. Whilst the application is running, I'm attaching the combobox to a new dataset. The problem I'm getting is that the combobox doesn't...
1
280
by: Ari | last post by:
Hi I hope some body can help me. I'm new with Visual Basic .net. I'm trying to fill a DataSet from to combo box but i do not how to do and i do not find any information that expalin to me how to...
18
20197
by: Vayse | last post by:
Has anyone an example of filling a combo box with a data reader? Thanks Vayse
3
6695
by: Magnus | last post by:
Im using a set combobox (ComboBox1) to provide a selection of records from a database table. I have a typed dataset (DataSet1) that contains the typed datatable (DataTable1) that the combobox is...
2
2933
by: tshad | last post by:
In my VS 2003 Windows Forms page, when I initially fill my ComboBox (SystemList), it goes to the SelectedIndexChanged event which calls the Loademails() function. I then call it again in the...
0
7132
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.