How come a binded combobox ValueMember returns a wrong number as RecordNumber?
-
Hello, I have experienced a strange problem which I couldn't find a solution. I have a form and one dataset with one table. Whenever I make an entry into this table, I have used Seed value as 100 and auto increment seed number as 5. Therefore the 1st record is getting 100 as recordNumber. I have created another form and placed the same dataset and one combobox which is binded to this table. I have used RecordNumber as ValueMember for the combobox. However when the combobox gets populated with the record, its ValueMember returns 105 instead of 100 (even there is one single record). Whatever I tried to find a solution for the problem, I have had no success. What would cause such problem? Notice: The dataset table gets filled whenever 2nd form gets loaded. Regards,
What a curious mind needs to discover knowledge is noting else than a pin-hole.
-
Hello, I have experienced a strange problem which I couldn't find a solution. I have a form and one dataset with one table. Whenever I make an entry into this table, I have used Seed value as 100 and auto increment seed number as 5. Therefore the 1st record is getting 100 as recordNumber. I have created another form and placed the same dataset and one combobox which is binded to this table. I have used RecordNumber as ValueMember for the combobox. However when the combobox gets populated with the record, its ValueMember returns 105 instead of 100 (even there is one single record). Whatever I tried to find a solution for the problem, I have had no success. What would cause such problem? Notice: The dataset table gets filled whenever 2nd form gets loaded. Regards,
What a curious mind needs to discover knowledge is noting else than a pin-hole.
-
I have double checked that whenever I add a new record into dataset gives the correct values as record number (primary key). However, the combobox which I bind to this table doesn't give the right correct values (VALUEMEMBER) when it gets populated from the table. Second row returns 110 which actually must return 105.
What a curious mind needs to discover knowledge is noting else than a pin-hole.