Hi,
I'm using SQL Server 2008 DM controls in a c# win app.
I'm able to show a descision tree viewer in a form and it loads data fine.
But when I try to load another mining model and refresh the viewer - nothing happens. It still show the first selected mining model.
This is the code I'm using in an "AfterSelect" event of a normal win-form TreeView control where I have rendered the mining models in a SSAS db.
---
string cmd = "Provider=MSOLAP.4;Data Source=SERVER;Integrated Security=SSPI;Initial Catalog=PMAS";
this.treeViewer1.ConnectionString = cmd;
this.treeViewer1.MiningModelName = e.Node.Name;
this.treeViewer1.LoadViewerData(cmd);
this.treeViewer1.Refresh();
this.treeViewer1.Update();
---
First time it works ok, but when I select another mining model nothing happens (e.Node.Name).
What am I doing wrong?
/Erik Lidman
Erik Lidman