Multiple Datasources - DataGrid

J

Jim Heavey

Can I bind 3 controls to 3 different datatables?

I have a datagrid with a databound column and 2
DropDownList.

I set the datasource for the datagrid to Table1 and the
DataBoundColumn to Field1 in Table1.

I attempt to set the DataSouce Property for DropDownList
to Table2 and set the DataTextField to "Description" and
the "DataValueField" to Category. Likewise For the
second DropDownList I set the datasource to Table3 and
DataField and DataValueField to appropriate column names
within Table3.

When I run, I get an error indicating that I must set the
datasource for DropdownList1 at runtime. When I set the
property at runtime I get another error - object is null.

How to I properly set the properties on the DropDownList?

Thanks in advance for your assistance!!!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top