T
Ted Ngo
I create a northwind Strongly Typed TableAdapters dataset,
the create a query like "select a, b, c, d from employeetable"
then bind it into the gridview
dim t as new northwindTableAdapters
gridview1.datasource = t.getdata()
gridview1.databind()
Now I create new query in the TableAdapters dataset
"select distinct d from the mployeetable"
I want to bind d value into the dropdownlist box;
dim t2 as new northwindTableAdapters
dropdownlist1.datasource = t2.getonlyd()
dropdownlist1.databind()
it complie ok, but when I run it I got this error message:
Failed to enable constraints. One or more rows contain values violating
non-null, unique, or foreign-key constraints.
Why?, Please help Thank.
the create a query like "select a, b, c, d from employeetable"
then bind it into the gridview
dim t as new northwindTableAdapters
gridview1.datasource = t.getdata()
gridview1.databind()
Now I create new query in the TableAdapters dataset
"select distinct d from the mployeetable"
I want to bind d value into the dropdownlist box;
dim t2 as new northwindTableAdapters
dropdownlist1.datasource = t2.getonlyd()
dropdownlist1.databind()
it complie ok, but when I run it I got this error message:
Failed to enable constraints. One or more rows contain values violating
non-null, unique, or foreign-key constraints.
Why?, Please help Thank.