foreach (DataRow udr in udt.Rows)
{
defaultval = udr["result"].ToString();
cmb.SelectedText = defaultval;
cmb.Select();
cmb.DataSource = ddtable;
cmb.DisplayMember = "ListVal";
cmb.ValueMember = "DetailID";
}
here problem is that i want to put defaultval at selectedindex 0,here default value is taken from anothe table.
i mean i have send a combo selected value into database for edit purpose i have to retrive this data at combo index position 1.
please help me.
thanks for help in advance.