Combo Boxes

I know this sounds very simple and it probably is. I have a Windows Form with a combo box on it. I have specified the DataSource, the DisplayMember and the ValueMember. When I compile and run the project, I still have no data displaying in my combo box. I am trying to populate it from a SQL Database table. There is data in the table. When I write a query in SQL to view the data, I can see it. What am I doing wrong or what am I missing?

Thanks in advance........

Comments

  • : I know this sounds very simple and it probably is. I have a Windows Form with a combo box on it. I have specified the DataSource, the DisplayMember and the ValueMember. When I compile and run the project, I still have no data displaying in my combo box. I am trying to populate it from a SQL Database table. There is data in the table. When I write a query in SQL to view the data, I can see it. What am I doing wrong or what am I missing?
    :
    : Thanks in advance........
    :

    In the Property window of the text box did you bind the data?
    Also check your querry for extra spaces missing " ' " ect
    put a break point on the querry and in debug when you get that point cpoy and paste the querry into querry analyzer and run it if you get no data the querry is not 100% correct if you get data There is another problum.Try That
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion