Click here to Skip to main content
15,911,132 members
Home / Discussions / C#
   

C#

 
QuestionSimple DataGridView Question Pin
dy1330-Sep-06 18:41
dy1330-Sep-06 18:41 
Hi, I have two datagridviews A and B. I want to set the bindingsource filter of datagrid B with the "Selected Row" of datagrid A. E.g. The customer name is in A, and the corresponding orders of that customer will show up in B.

Usually this would be done with the following code if I was using a ComboBox for A:
this.myBindingSource.Filter = "Name=" + myComboBox.SelectedValue;

But for a datagrid view all i can get is "myGridViewA.SelectedRows". How do I extract the selected row and the corresponding column value (Name) from SelectedRows?

A even better method would be how would this be done if Multi select is turned in datagridview A?
AnswerRe: Simple DataGridView Question Pin
LongRange.Shooter3-Oct-06 8:16
LongRange.Shooter3-Oct-06 8:16 
QuestionRegarding Event handling on MicroSoft WebBrowser Control in .Net 1.x (AxSHDocVw.AxWebBrowser) Pin
Mystic_30-Sep-06 12:15
Mystic_30-Sep-06 12:15 
QuestionQueryContinueDrag problem Pin
e-laj30-Sep-06 11:21
e-laj30-Sep-06 11:21 
GeneralWall Street Programming Pin
Andrey Butov30-Sep-06 10:55
Andrey Butov30-Sep-06 10:55 
Questiondata from dataset to array Pin
Amar Chaudhary30-Sep-06 8:26
Amar Chaudhary30-Sep-06 8:26 
AnswerRe: data from dataset to array Pin
Amar Chaudhary30-Sep-06 8:32
Amar Chaudhary30-Sep-06 8:32 
AnswerI found a bug in .net Pin
Amar Chaudhary30-Sep-06 10:11
Amar Chaudhary30-Sep-06 10:11 
GeneralRe: I found a bug in .net Pin
Amar Chaudhary30-Sep-06 10:15
Amar Chaudhary30-Sep-06 10:15 
QuestionI have a strange with my computers. I chose C# because that is what I mostly do! Pin
Just me at will_george...something30-Sep-06 7:08
Just me at will_george...something30-Sep-06 7:08 
Questionredirecting output from an unmanaged console application Pin
erikash30-Sep-06 5:25
erikash30-Sep-06 5:25 
AnswerRe: redirecting output from an unmanaged console application Pin
umseker30-Sep-06 9:43
umseker30-Sep-06 9:43 
AnswerRe: redirecting output from an unmanaged console application Pin
S. Senthil Kumar1-Oct-06 9:41
S. Senthil Kumar1-Oct-06 9:41 
QuestionFormatting a single datagridview cell??? Pin
printscreen1234530-Sep-06 4:40
printscreen1234530-Sep-06 4:40 
AnswerRe: Formatting a single datagridview cell??? Pin
LongRange.Shooter3-Oct-06 8:22
LongRange.Shooter3-Oct-06 8:22 
Questionwhat we write Pin
Parshant Verma30-Sep-06 4:28
Parshant Verma30-Sep-06 4:28 
AnswerRe: what we write Pin
Guffa30-Sep-06 6:33
Guffa30-Sep-06 6:33 
AnswerRe: what we write Pin
Just me at will_george...something30-Sep-06 7:17
Just me at will_george...something30-Sep-06 7:17 
AnswerRe: what we write Pin
Judah Gabriel Himango30-Sep-06 16:53
sponsorJudah Gabriel Himango30-Sep-06 16:53 
Questionctrl+c and ctrl+v not working in TextBox Pin
rajmohan8330-Sep-06 1:38
rajmohan8330-Sep-06 1:38 
AnswerRe: ctrl+c and ctrl+v not working in TextBox Pin
zhengdong jin30-Sep-06 7:11
zhengdong jin30-Sep-06 7:11 
AnswerRe: ctrl+c and ctrl+v not working in TextBox Pin
pratap bhargava25-Jun-10 18:07
pratap bhargava25-Jun-10 18:07 
QuestionClass inheritance Pin
you3030-Sep-06 0:47
you3030-Sep-06 0:47 
AnswerRe: Class inheritance Pin
Guffa30-Sep-06 3:49
Guffa30-Sep-06 3:49 
Questionchat application Pin
rcwoods29-Sep-06 23:57
rcwoods29-Sep-06 23:57 

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.