Hi,
I have a problem with the attributes (DataValueField), this is my code :
In debug mode,
ds.Tables[0].Rows[0]["nbArticle"] = 52 but treeView.Nodes[0].Attributes.Count = 0 :-/
The tree is displayed correctly... but I can't find the attributes.
Do you have an idea?
I have a problem with the attributes (DataValueField), this is my code :
treeView.DataTextField =
"CheminFr"
;
treeView.DataFieldID =
"CLA_CODE"
;
treeView.DataFieldParentID =
"PARENT_CLA_CODE"
;
treeView.DataValueField =
"CLA_ID"
;
treeView.DataValueField =
"CLA_ACTIVE"
;
treeView.DataValueField =
"profondeur"
;
treeView.DataValueField =
"cheminEn"
;
treeView.DataValueField =
"ChildrenAllowed"
;
treeView.DataValueField =
"nbArticle"
;
//Récupère l'arbre à afficher
DataSet ds = MichelFactory.getAllHierarchy();
treeView.DataSource = ds;
treeView.DataBind();
In debug mode,
ds.Tables[0].Rows[0]["nbArticle"] = 52 but treeView.Nodes[0].Attributes.Count = 0 :-/
The tree is displayed correctly... but I can't find the attributes.
Do you have an idea?