First, do not concatenate values directly to an SQL statement. Use parameters instead, see:
SqlParameter[
^].
About the binding use the
DisplayMember[
^] and
ValueMember[
^] properties to define the fields your binding should use.
Addition:
I think you should have a comma in your SQL statement. Try:
SqlDataAdapter da = new SqlDataAdapter("SELECT NAME, AC_CODE FROM AccountM where compcode='" + Compcls.Gcomp_cd + "'", con);
And remember to add parameter to your query:
SqlDataAdapter da = new SqlDataAdapter("SELECT NAME, AC_CODE FROM AccountM where compcode=@compcode", con);
...