How Can i Populate Bulk of Data from a DB Table into a Combo Box? - C#.NET
Posted
by peace
on Stack Overflow
See other posts from Stack Overflow
or by peace
Published on 2010-05-19T10:06:25Z
Indexed on
2010/05/19
10:10 UTC
Read the original article
Hit count: 232
MenuItem menus = new MenuItem();
GridView1.DataSource = menus.GetDataTable();
GridView1.DataBind();
menus.GetDataTable() returns a DataTable. In the above case, we are returning to GridView. I need to populate the data into a combo box. How can i do it?
NOTE: Assume GetDataTable only returns records of a single column.
© Stack Overflow or respective owner