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!!!!!!
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!!!!!!