Click here to Skip to main content
15,896,726 members
Home / Discussions / C#
   

C#

 
GeneralDataBinding and Update Pin
DionChen27-May-03 3:36
DionChen27-May-03 3:36 
GeneralRe: DataBinding and Update Pin
..Hubert..27-May-03 6:40
..Hubert..27-May-03 6:40 
QuestionWhat's the better way to terminate the following thread? Pin
Daniel Strigl27-May-03 2:47
Daniel Strigl27-May-03 2:47 
AnswerRe: What's the better way to terminate the following thread? Pin
Tom Welch27-May-03 4:09
Tom Welch27-May-03 4:09 
QuestionStill no solution! Memory bug in Services? Pin
solidstore27-May-03 1:46
solidstore27-May-03 1:46 
AnswerRe: Still no solution! Memory bug in Services? Pin
Philip Fitzsimons27-May-03 22:27
Philip Fitzsimons27-May-03 22:27 
Generaldatasets with criteria and codedescription Pin
haezeban27-May-03 0:46
haezeban27-May-03 0:46 
GeneralRe: datasets with criteria and codedescription Pin
Rocky Moore27-May-03 22:26
Rocky Moore27-May-03 22:26 
Not quite sure I understand the situtation. The result code is what I am hanging on. Don't have a clue what this really is unless it is the link field between the two tables.

I am going to take a shot in the dark. If you have two tables and you want a master/detail type relationship between two combos, you would simply take the results when changed from the master combo box and use it as the view's filter criteria for the second combobox and base the second combobox on the DefaultView of the the detail table.

For an example, let's say I have two tables in a DataSet:

MembershipTypeGroups
MemebershipTypeGroup_ID
Description

Data:
1,"Personal"
2,"Business"
3,"Non-Profit"

MembershipTypes
MembershipType_ID
MembershipTypeGroup_ID
Description
Fee

Data:
1,1, "Basic", "Free"
2,1, "Enhanced", "$10"
3,1, "Premium", "$50"
4,2, "Business Basic", "$25"
5,2, "Business Premium", "$100"
6,3, "Non-Profit Basic", "Free"

Now, I have two comboboxes on a form. The first is set to the MembershipTypeGroups which is used to selected group of a membership which is Personal, Business or Non-Profit. The second combobox is keyed on the MembershipTypes table and is filtered by the selection of the first combobox. You bind the second combobox to the DefaultView of the MembershipTypes table in the DataSet. This allows you to change the "Filter" on the default view (DefaultView.Filter="MembershipTypeGroup_ID="+selectedValueOfFirstComboBox.ToString()) to select only those that match the selected primary key of the first combobox.

Rocky Moore <><
GeneralThread.IsBackground Pin
Daniel Strigl27-May-03 0:44
Daniel Strigl27-May-03 0:44 
GeneralRe: Thread.IsBackground Pin
Tom Welch27-May-03 4:05
Tom Welch27-May-03 4:05 
GeneralGraphs (!Graphics) Pin
NHM27-May-03 0:05
NHM27-May-03 0:05 
GeneralBitmap editing with different bitmap formats Pin
Oyvind Bratland26-May-03 21:44
Oyvind Bratland26-May-03 21:44 
GeneralBitmap Transparency Issue Pin
Joseph LeBlanc26-May-03 14:08
Joseph LeBlanc26-May-03 14:08 
GeneralC# &amp; XML should take the blue pill ;-) Pin
antoine@orchus-tech26-May-03 11:45
antoine@orchus-tech26-May-03 11:45 
GeneralRe: C# &amp; XML should take the blue pill ;-) Pin
Chris Maunder26-May-03 16:01
cofounderChris Maunder26-May-03 16:01 
GeneralRe: C# &amp; XML should take the blue pill ;-) Pin
antoine@orchus-tech26-May-03 19:02
antoine@orchus-tech26-May-03 19:02 
GeneralRe: C# & XML should take the blue pill ;-) Pin
J. Dunlap26-May-03 19:13
J. Dunlap26-May-03 19:13 
GeneralRe: C# &amp; XML should take the blue pill ;-) Pin
antoine@orchus-tech27-May-03 4:10
antoine@orchus-tech27-May-03 4:10 
GeneralCode sample (+) Pin
Karavaev Denis27-May-03 0:49
Karavaev Denis27-May-03 0:49 
GeneralRe: C# &amp; XML should take the blue pill ;-) Pin
Manster27-May-03 6:09
Manster27-May-03 6:09 
GeneralNewbie to C# :o) Pin
MemLeak26-May-03 8:53
MemLeak26-May-03 8:53 
GeneralRe: Newbie to C# :o) Pin
Daniel Strigl27-May-03 0:21
Daniel Strigl27-May-03 0:21 
GeneralImages on toolbar buttons Pin
monrobot1326-May-03 7:28
monrobot1326-May-03 7:28 
QuestionResources...Where do they go? Pin
monrobot1326-May-03 7:12
monrobot1326-May-03 7:12 
AnswerRe: Resources...Where do they go? Pin
James T. Johnson26-May-03 11:23
James T. Johnson26-May-03 11:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.