Click here to Skip to main content
15,885,126 members
Home / Discussions / C#
   

C#

 
GeneralRe: Connection to network shares Pin
Mazdak2-Sep-03 20:18
Mazdak2-Sep-03 20:18 
GeneralSQLDMO Pin
yyf2-Sep-03 12:18
yyf2-Sep-03 12:18 
QuestionHow I can position a form? Pin
yyf2-Sep-03 11:19
yyf2-Sep-03 11:19 
AnswerRe: How I can position a form? Pin
yyf2-Sep-03 11:31
yyf2-Sep-03 11:31 
GeneralDatabindings Pin
yyf2-Sep-03 10:44
yyf2-Sep-03 10:44 
GeneralRe: Databindings Pin
Gilles B.2-Sep-03 12:41
sussGilles B.2-Sep-03 12:41 
GeneralRe: Databindings Pin
yyf2-Sep-03 12:59
yyf2-Sep-03 12:59 
GeneralRe: Databindings Pin
Ista2-Sep-03 16:54
Ista2-Sep-03 16:54 
a value or a variable

ComboBox1 has its own items including ID which dictates COmboBox2

Table1

CustomerName
CustomerID

Table2

StoreName
StoreID
CustomerID

As you can see the relationship is a customer has 0 or many stores and a store must have 1 customer

ComboBox1.DataSource = Table["CUstomer"].DefaultView;
ComboBox1.DisplayMember = "Name";
ComboBox1.ValueMember = "ID";

ComboBox2.DataSource = Table["Stores"].DefaultView;
ComboBox2.DisplayMember = "Name";
ComboBox2.ValueMember = ComboBox1.SelectedValue;

try that out, when you change combo1 the combo2 is updated based on the relationshipID.

to make them change each other makes no sense really, its a circular relationship which would require for you to hand pick the relationships in which

you would sink the SelectedIndex_Changed event and make your changes there.

nick

I'm not an expert yet, but I play one at work. Yeah and here too.
GeneralDataBindings Pin
yyf2-Sep-03 10:27
yyf2-Sep-03 10:27 
GeneralRe: DataBindings Pin
Ista2-Sep-03 16:56
Ista2-Sep-03 16:56 
GeneralAuthenticating to a web site Pin
roberthanacek2-Sep-03 10:24
roberthanacek2-Sep-03 10:24 
GeneralRe: Authenticating to a web site Pin
leppie2-Sep-03 12:09
leppie2-Sep-03 12:09 
GeneralSingleCall Objects not Disposing Pin
0siris2-Sep-03 8:03
0siris2-Sep-03 8:03 
GeneralOverride the asterisk and row arrow in datagrid Pin
Ista2-Sep-03 7:02
Ista2-Sep-03 7:02 
General(Rich) Text Box and cursor position Pin
Frank Olorin Rizzi2-Sep-03 5:59
Frank Olorin Rizzi2-Sep-03 5:59 
GeneralRe: (Rich) Text Box and cursor position Pin
Frank Olorin Rizzi2-Sep-03 6:07
Frank Olorin Rizzi2-Sep-03 6:07 
GeneralRe: (Rich) Text Box and cursor position Pin
.gonad2-Sep-03 6:47
.gonad2-Sep-03 6:47 
QuestionCan you use functions like sprintf in c# Pin
IrishSonic2-Sep-03 5:59
IrishSonic2-Sep-03 5:59 
AnswerRe: Can you use functions like sprintf in c# Pin
flipdoubt2-Sep-03 7:04
flipdoubt2-Sep-03 7:04 
AnswerRe: Can you use functions like sprintf in c# Pin
leppie2-Sep-03 12:14
leppie2-Sep-03 12:14 
GeneralThanks, will check it out. Pin
IrishSonic2-Sep-03 22:06
IrishSonic2-Sep-03 22:06 
GeneralOffice Xp Task Panel Pin
Sanjay Rastogi2-Sep-03 3:15
Sanjay Rastogi2-Sep-03 3:15 
GeneralSingleCall and Threads Forever Pin
Member 4744652-Sep-03 2:32
Member 4744652-Sep-03 2:32 
GeneralWin32 API Wrapper Pin
vikramlinux1-Sep-03 23:34
vikramlinux1-Sep-03 23:34 
GeneralRe: Win32 API Wrapper Pin
J. Dunlap2-Sep-03 9:20
J. Dunlap2-Sep-03 9:20 

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.