473,624 Members | 2,651 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How I can fill a DataSet from two diferent Combobox

Ari
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

Jul 21 '05 #1
1 1239
You can either load both tables and use a DataRelation
http://www.knowdotnet.com/articles/datarelation.html Or you can bind the
second one to a DataView for instance, and set its RowFilter property based
on the value of the First combobox. At www.knowdotnet.com Check out my
"Efficientl y using ADO.NET xxx" articles, I go through this there..

--
W.G. Ryan MVP Windows - Embedded

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/...ity/newsgroups
"Ari" <Ar*@discussion s.microsoft.com > wrote in message
news:C9******** *************** ***********@mic rosoft.com...
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

Jul 21 '05 #2

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

Similar topics

0
853
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
1
1535
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. thank
2
1225
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 column? Thanks
6
1693
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 comboboxes is bad idea, isn't it? But filling one dataset is fast.
4
1436
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
1
231
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
18
20217
by: Vayse | last post by:
Has anyone an example of filling a combo box with a data reader? Thanks Vayse
3
6713
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 fields. Here is the designer generated code for ComboBox1: this.ComboBox1.DataSource =...
2
2951
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 when I initally fill the ComboBox. *********************************************************...
0
8249
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8179
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8685
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8348
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8493
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6112
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4084
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4187
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2613
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.