Combo Box.ValueMember Problem
-
the problem is in form load event i kept the filling of the combobox named Gender from SQL tables it is giving error in the following line this.cGender.valuemember = "GenID"; (the value not found blah blah) why it is doing so sas
-
the problem is in form load event i kept the filling of the combobox named Gender from SQL tables it is giving error in the following line this.cGender.valuemember = "GenID"; (the value not found blah blah) why it is doing so sas
-
the problem is in form load event i kept the filling of the combobox named Gender from SQL tables it is giving error in the following line this.cGender.valuemember = "GenID"; (the value not found blah blah) why it is doing so sas
sajid.salim.khan wrote:
the value not found blah blah
Hmm, interesting error message. Not seen that one before :suss:.
sajid.salim.khan wrote:
this.cGender.valuemember = "GenID";
Does the data source you are binding to contain a field called 'GenID'?
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
sajid.salim.khan wrote:
the value not found blah blah
Hmm, interesting error message. Not seen that one before :suss:.
sajid.salim.khan wrote:
this.cGender.valuemember = "GenID";
Does the data source you are binding to contain a field called 'GenID'?
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
the situation is that i have a table Employee info having attributes EmpId EmpName GenID the gender attribute is bieng filled by another table having 2 attribuites GenID and gender i.e GenID is a foriegn key in the Employee info table now when filling the table from a winform i loaded the data in the combo box of gender in form load event but the value member is giving error bcoz i have to select the field from gender and must be saved in the Employee info table sas