Combobox SelectedValue Problem.
-
Hi, Im using windows form combobox, binding the value using Binding object,after retreving from the database,im using Combobox.selectedvalue="2"; after the form load completion the selected value is not get retaining. im using combobox style as dropdown. Regards Kanna
-
Hi, Im using windows form combobox, binding the value using Binding object,after retreving from the database,im using Combobox.selectedvalue="2"; after the form load completion the selected value is not get retaining. im using combobox style as dropdown. Regards Kanna
-
Hi, Im using windows form combobox, binding the value using Binding object,after retreving from the database,im using Combobox.selectedvalue="2"; after the form load completion the selected value is not get retaining. im using combobox style as dropdown. Regards Kanna
I assume you try setting the value after you bind the control to your data.. if the value is bound to int datacolumn then drop the " - use integers.. also you may try setting ComboBox.BindingContext property to parenting Form.BindingContext. ex. cmb.BindingContext = this.BindingContext;
life is study!!!