4
Reply

value of combo box...

Viky Tripathi

Viky Tripathi

May 19 2015 5:58 AM
400
i want to access value of selected item in combobox in win form.
 
code is:---------------------------------
 
combo1.Items.Add(ds.Tables[alias_table].Rows[rno][field_name].ToString());
combo1.ValueMember = ds.Tables[alias_table].Rows[rno][field_id].ToString();
combo1.DisplayMember = ds.Tables[alias_table].Rows[rno][field_name].ToString();
 
then how i can accesee that valuemember?

Answers (4)