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!!!!!!
 
Joined
May 9, 2006
Messages
2
Reaction score
0
Multiple DataGrid

I need to display multiple datagrid .No of datagrids is depending on the records fetching from database.
 

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

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top