I’ve got a custom Data access layer in my ASP.NET project. It goes to the db and retrieves all data required and returns it as DataTable objects. I want to bind one of the DataTables to DevExpress ComboBox control:
var productsDal = DalProviderFactory.Instance.GetProductsDal();
cbProducts.DataSource = productsDal.GetAllProductNames(); //--> One-column DataTable object is returned here.
cbProducts.DataMember = "ProductName"; //--> Specifying name of the column.
cbProducts.DataBind();
This doesn’t work; it definitely binds something but doesn’t display it properly:

Ok. I found out that the ComboBox actually accepts SqlDataSource object as its DataSource. So I’ce tried to configure one:
<asp:SqlDataSource ID="dsProducts" runat="server" />
Now instead of having it connecting to the db itself, I want to use my DAL and somehow assign the datatable to the SqlDataSource. Is there any way of doing this?
Thanks in advance.