Get the selected value from a combo box in .Net 2.0

Get the selected value from a combo box in .Net 2.0

Post by Natra » Wed, 26 Apr 2006 23:00:56


Hi All,

I am developing the windows application using .Net 2.0.
I am binding the dataset to the combo box like,

this.statesCB.DisplayMember = "Name";
this.statesCB.ValueMember = "Code";

this.statesCB.DataSource = statesTable;
(statesTable - > Datatable)

How to get the selected value in the selected index changed OR
selected value changed event ?

Can u any one help me please ?

Thanks in Advance,

Natraj.
 
 
 

Get the selected value from a combo box in .Net 2.0

Post by Natra » Wed, 26 Apr 2006 23:03:15

Hi All,

I am developing the windows application using .Net 2.0.
I am binding the dataset to the combo box like,

this.statesCB.DisplayMember = "Name";
this.statesCB.ValueMember = "Code";

this.statesCB.DataSource = statesTable;
(statesTable - > Datatable)

How to get the selected value in the selected index changed OR
selected value changed event ?

Can u any one help me please ?

Thanks in Advance,

Natraj.

 
 
 

Get the selected value from a combo box in .Net 2.0

Post by Otis Mukin » Thu, 27 Apr 2006 20:34:09


This is an elementary question answered by searching the help index for
"ComboBox" and then reading the "All members" section.

Good luck with your project,

Otis Mukinfus
http://www.yqcomputer.com/
http://www.yqcomputer.com/
 
 
 

Get the selected value from a combo box in .Net 2.0

Post by John Fullm » Sat, 29 Apr 2006 01:56:41

Make sure you have the SelectedIndexChanged event handler, and you
should be good. If you've got that, just check your args, it's all
there.

- John Fullmer
 
 
 

Get the selected value from a combo box in .Net 2.0

Post by Infant New » Wed, 31 May 2006 20:54:30

.SelectedValue()