bind sql data table to combo box control
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
i have to populate data table's values in combo box control using c#.net 2.0. so please provide some code for it
-
i have to populate data table's values in combo box control using c#.net 2.0. so please provide some code for it
myCombo.DataSource = myTable; myCombo.DataBind(); Your combo has properties you can set for which column value to use for display and for the value member.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )