Hi,
I am trying to set datarow property in to combobox selected value but i am unable to set.
my code is
cbSubject.SelectedValue = dr["Subject"] != null ? Convert.ToInt16(dr["Subject"]) : (Int16)(-1);
dr["Subject"] is nothing but combobox value
below link i tried but i am unable to set ,please any one having relevant information just share it.
http://stackoverflow.com/questions/18119624/selectedvalue-for-combobox-not-getting-set
Thanks Regards
Shankar