Combo Box
C#
3
Posts
3
Posters
0
Views
1
Watching
-
:rose::rose:How to Fill Combo Box From SQL2000 Tables :rose:SAS
-
:rose::rose:How to Fill Combo Box From SQL2000 Tables :rose:SAS
-
:rose::rose:How to Fill Combo Box From SQL2000 Tables :rose:SAS
hi this is the coding to fill the combo strselect="select fieldname from tablename " objsqlconn=new sqlconnection("userid=sa;password=;data source=servername") objsqlconn.open() objdataset=new dataset objsqlcmd=new sqlcommand(strselect,objsqlconn) objsqldataadapter=new sqldataadapter(objsqlcmd) objsqldataadapter.fill(objdataset,"Tablename") cmbname.datasourc=objdataset.table("Tablename") cmbname.displaymember="Fieldname" cmbname.displayvalue="fieldname" this is how to fill the combo have a nice day