Problem While Using DataSource Property

Posted by narmadha on Stack Overflow See other posts from Stack Overflow or by narmadha
Published on 2010-03-31T09:41:22Z Indexed on 2010/03/31 9:43 UTC
Read the original article Hit count: 215

Filed under:

Hi, I am using DataSource Property to Bind the data into ComboBox using C# in the following manner:

          ComboBox1.DataSource=dt;//dt is the datatable which is having the values
          ComboBox1.DisplayMember="column1";
          ComboBox1.ValueMember="column2";

The Problem is that i having all the values in the DataSource of the ComboBox1 i.e.totally five values,But the ComboBox1 count is 1 ,Dont know Why?Can anyone help me,Thanks in advance....................

© Stack Overflow or respective owner

Related posts about c#