473,563 Members | 2,916 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 1529
Ari,

Did you know that there is a newsgroup

Microsoft.publi c.dotnet.langua ge.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).ro ws(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
1233
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 the ComboBoxes. I'm using VisualBasic .NET. how I can do that. I will appreciate the help. Thanks
2
1221
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: System.Data.DataRowView If I click on one, it navigates to the right place. Any idea how I would get the System.Data.DataRowView to show the actual values in the...
6
1690
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. 1) If I connect each combobox to one Dataset then if I choose street in one combobox it changes also in combobox 2 and 3. So one dataset to three...
4
1434
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
1886
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 appear to reflect the new dataset. The same code seems to work fine if the combobox is set to the dataset on initialisation. What have I done...
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 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. ...
18
20212
by: Vayse | last post by:
Has anyone an example of filling a combo box with a data reader? Thanks Vayse
3
6699
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 bound to. The datatable in the dataset is filled using the typed tableadapter (TableAdapter1). DataTable consists of the typical primary key and value...
2
2939
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 Form1Load function. How do I get it not to call it in the SelectedIndexChanged from the Form1Load function? Normally, I want it to call it but not...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7948
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
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 we have to send another system

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.