hi friends I need help
-
I am using visual studio 2003(FW 1.1).I filled a combobox using value member and display member from a datasource.when I run my project that combo box is hanging ,ie values are there in combobox but I cant select from that.(values are not populating).Comboboxes are working fine if I add Items using Item.Add() method.Any way to solve this problem as I need to get value member from that.Pls help me .... with regards thomas
-
I am using visual studio 2003(FW 1.1).I filled a combobox using value member and display member from a datasource.when I run my project that combo box is hanging ,ie values are there in combobox but I cant select from that.(values are not populating).Comboboxes are working fine if I add Items using Item.Add() method.Any way to solve this problem as I need to get value member from that.Pls help me .... with regards thomas
Best guess is that your code to get the data from the source is hanging. Have you tried debugging to work out where it gets stuck ?
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
-
Best guess is that your code to get the data from the source is hanging. Have you tried debugging to work out where it gets stuck ?
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
there is no problem while debugging.its a simple code , here it is ... cmboobx.Datasource=Dataset.Tables[0]; cmboobx.Displaymember=string Display member ; cmboobx.VauemEMBER=STRING VALUE MEMBER; this is the code I used.But while running combobox is not hanging.we can select values using scroll in our mouse.But we cant click and select that value. thank you for your reply friend.
-
there is no problem while debugging.its a simple code , here it is ... cmboobx.Datasource=Dataset.Tables[0]; cmboobx.Displaymember=string Display member ; cmboobx.VauemEMBER=STRING VALUE MEMBER; this is the code I used.But while running combobox is not hanging.we can select values using scroll in our mouse.But we cant click and select that value. thank you for your reply friend.
I don't see how that's possible. You can scroll through the items, but can't select one ? What are you clicking, the items in a drop down list that appears ? Of course, the code you posted is broken, it would not even compile. what does your code really look like ?
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
-
I don't see how that's possible. You can scroll through the items, but can't select one ? What are you clicking, the items in a drop down list that appears ? Of course, the code you posted is broken, it would not even compile. what does your code really look like ?
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
sorry ..friend , I cant copy and paste code from here.That code is just a sample. Here is the format combobox1.DataSource=dataset1.Tables[0]; combobox1.DisplayMember="Name of column to be displayed"; combobox1.ValueMember="Name of column to be added as value";