How to fill a dataSet from to ComboBox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
Back
Top