473,320 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Datagrid with two comboboxes

Hello!

I have a datagrid and in that I have two comboboxes, 1 is category and 2 is
subcategory. I only want to show the
sub categories for the selected category. (As in: when category A selected
only show subcat A1, A2 and A3 and
when category B selected only show subcat B1, B2, B3 and B4 in the other
subcategory).
Do you know of any sample demonstrating this? In datagrid i cannot find any
samples of this, i've looked everywhere,
newsgroups, syncfusion etc etc.

Regards,
Marius Traelnes
Nov 20 '05 #1
1 1100
Basically, you should be able to do this with a dataset relation.

Lets say you have two tables in your dataset, Master / Slave. You need to
bind the first combo to the Master, then set up a relation ( Master/Slave )
in the Dataset, and make your second combobox bind to the relation, this
"should" work. I have done this with dataGrids, but not with Combo Box's

If this doesent work, then try the ADONET newsgroup.

Regards OHM


Marius Trælnes wrote:
Hello!

I have a datagrid and in that I have two comboboxes, 1 is category
and 2 is subcategory. I only want to show the
sub categories for the selected category. (As in: when category A
selected only show subcat A1, A2 and A3 and
when category B selected only show subcat B1, B2, B3 and B4 in the
other subcategory).
Do you know of any sample demonstrating this? In datagrid i cannot
find any samples of this, i've looked everywhere,
newsgroups, syncfusion etc etc.

Regards,
Marius Traelnes

Nov 20 '05 #2

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

Similar topics

0
by: Frosty | last post by:
Hi I am using the VS xsd designer to create a strongly typed dataset. The dataset is apparently successfully created, with no warnings or errors given. Is it not then to be expected that this...
4
by: RFickling | last post by:
Hi, I have implemented a DataGrid with ComboBoxes in it using the DataGridComboBoxColumn class from the MSDN article. My problem is that I would like to make the combobox disappear when an item...
3
by: pnp | last post by:
Hi all, I would like to create a component that simulates the functionality of an MS Access table, through a Datagrid combined with comboboxes, datetime selectors and checkboxes. So when a table...
4
by: Pacific Design Studios | last post by:
I have a DataGrid on Form1 that displays a small amount of information about employees. On Form2 I want to have all the data displaying in text boxes about the employee selected in the datagrid on...
2
by: jaYPee | last post by:
i have search a lot of newsgroup and some website to find a sample for multi column combobox in datagrid but no luck. there are so many sample i found but it is not located in datagrid. i would...
1
by: zoneal | last post by:
Hi I have a form with a listbox, two comboboxes and two Radiobuttons. What I want to do is make a selection from both comboboxes and either Radiobutton and display these three elements across the...
12
by: Sam | last post by:
Hi, Do you know where I can find a simple example of what I'm trying to achieve : I have a dataset filled with two columns from a table of my database. Then the dataset is used to fill a...
2
by: Reidar | last post by:
I am making a datagrid with one table. In this datagrid I change som columns from textboxes to comboboxes. The comboboxes has datasource from another table, displaymember is the textfield from...
1
by: R.Rafii | last post by:
Hi all, I am using Visual Studio 2005 and Visual basic. I've created a form with two ComboBoxes and a DataGrid I binned the ComboBoxes to a table on my remote SQL2005 server What I want to do...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.