When I bind the control to the datasource I got the following Error:
This constraint cannot be enabled as not all values have corresponding parent values.
Here is My Proc. :
This constraint cannot be enabled as not all values have corresponding parent values.
Here is My Proc. :
Create
proc [sel_user]
@username
int
as
select
* from dbo.MinaTableOne
where
id= @username
But When I remove the Where Cluse It works Fine
so When I use this Proc. :
Create proc [sel_user]
@username
int
as
select
* from dbo.MinaTableOne
Also here is my code:
Dim dt As DataTable
dt = Nothing
dt = New DataTable
dt = ins.selectPOcombo(1013)
RadOrgChart1.DataTextField = dt.Columns(1).ToString
RadOrgChart1.DataFieldID = dt.Columns(0).ToString
RadOrgChart1.DataFieldParentID = dt.Columns(5).ToString
RadOrgChart1.DataSource = dt
RadOrgChart1.DataBind()
Note "ins" is my ADO Class
Any Ideas Why
Thanks