Viky Tripathi

Viky Tripathi

  • NA
  • 38
  • 3.2k

value of combo box...

May 19 2015 5:58 AM
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)