View previous topic :: View next topic |
Author |
Message |
M2M_Brian
Joined: 22 Oct 2010 Posts: 8
|
Posted: Wed Mar 30, 2011 7:22 pm Post subject: Tree not updating |
|
|
I have a project that was working fine until I upgraded to VS 2010. Now the tree won't update. I have verified that it still works in VS2008 on a different machine. I am running Virtual Tree 4.0.0. Is this something you have seen before? Thanks in advance. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Mar 30, 2011 9:51 pm Post subject: |
|
|
No we haven't seen anything like that previously.
Were you using the same version (4.0.0) of Virtual Tree with your 2008 project?
Have you made any other changes to the code other than upgrading to VS2010?
Did you change the targeted .NET framework to Version 4?
When you say the tree "won't update" what exactly do you mean? Does it draw initially OK? Can you expand, collapse, select etc? _________________ Infralution Support |
|
Back to top |
|
|
M2M_Brian
Joined: 22 Oct 2010 Posts: 8
|
Posted: Wed Mar 30, 2011 10:53 pm Post subject: |
|
|
It was originally version 3. When I brought it in to VS2010 it wasn't working so I upgraded it to version 4. Neither version seems to work. No code has been changed.
The tree never populates at all. I have verified that the DataSource has 8 nodes, but nothing is ever drawn. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Mar 30, 2011 11:03 pm Post subject: |
|
|
Do the VS2010 sample projects installed with Virtual Tree compile and run OK on your machine?
The most likely cause is that the row bindings are not binding to your data for some reason. What sort of data binding are you using (DataSet binding, Object binding or Programmatic binding)?
Do you have "ShowRootRow" turned on? If you set it to true do you see data source object displayed in the tree?
Did you change the targeted .NET framework for the project to .NET 4? _________________ Infralution Support |
|
Back to top |
|
|
M2M_Brian
Joined: 22 Oct 2010 Posts: 8
|
Posted: Wed Mar 30, 2011 11:07 pm Post subject: |
|
|
Yes, they compile and run OK.
I am using Programmatic Binding.
I did not have ShowRootRow turned on. When I turned it on I did see my root node, but not the 8 child nodes it has.
I am targeting .NET 4. |
|
Back to top |
|
|
M2M_Brian
Joined: 22 Oct 2010 Posts: 8
|
Posted: Wed Mar 30, 2011 11:10 pm Post subject: |
|
|
Sorry, in this project I am using Object binding. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Mar 30, 2011 11:26 pm Post subject: |
|
|
Open the Row Bindings editor and check the TypeName property for your row bindings - perhaps the name of the class you are binding to has changed for some reason and so Virtual Tree can't locate the row binding to use for your class.
You could handle the GetBinding event and programatically set the e.RowBinding property that should be used for a given item.
What sort of object are you setting as the DataSource - is it a List or an object? Do you have a RowBinding defined that binds to the data source object?
Are you using VB.NET or C#? _________________ Infralution Support |
|
Back to top |
|
|
M2M_Brian
Joined: 22 Oct 2010 Posts: 8
|
Posted: Wed Mar 30, 2011 11:30 pm Post subject: |
|
|
Somehow the name of my Assembly had changed. Once I fixed that it worked fine. It would be nice if some sort of exception was raised.
Thanks for your help! |
|
Back to top |
|
|
|