Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tree not updating

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
M2M_Brian



Joined: 22 Oct 2010
Posts: 8

PostPosted: Wed Mar 30, 2011 7:22 pm    Post subject: Tree not updating Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Mar 30, 2011 9:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
M2M_Brian



Joined: 22 Oct 2010
Posts: 8

PostPosted: Wed Mar 30, 2011 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Mar 30, 2011 11:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
M2M_Brian



Joined: 22 Oct 2010
Posts: 8

PostPosted: Wed Mar 30, 2011 11:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
M2M_Brian



Joined: 22 Oct 2010
Posts: 8

PostPosted: Wed Mar 30, 2011 11:10 pm    Post subject: Reply with quote

Sorry, in this project I am using Object binding.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Mar 30, 2011 11:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
M2M_Brian



Joined: 22 Oct 2010
Posts: 8

PostPosted: Wed Mar 30, 2011 11:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group