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 

Problem with FindRowByIndex

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



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Wed Jan 04, 2006 1:34 pm    Post subject: Problem with FindRowByIndex Reply with quote

Hello Support

I use VT as a ListView. I have a Data View Binding to the DataTable "Supplier" and a Data Row Binding to the same Table.

I try to set the SelectedRow manually by FindRowByIndex, but this don't work.

Code:

int[] path = {3};
Row dummy = treSupplier.FindRowByIndex(path);
treSupplier.SelectedRow = dummy;


The Row with the Index 3 exists, but FindRowByIndex returns always null.

Thanks for you Help.

Best Regards
Giuseppe
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jan 04, 2006 10:48 pm    Post subject: Reply with quote

I have just modified the Data Browser sample to add a menu item that selects the third row using the same code that you posted. This works without any problems. I also changed the bindings so that it was a simple list view of customers - still no problems.

There must be something else going on here. When are you trying to call FindRowByIndex? If you can send us a sample project that demonstrates the problem that would help work out what might be happening.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Thu Jan 05, 2006 7:53 am    Post subject: Reply with quote

I can not reproduce the same behaviour in a sample App. I will investigate on my Real App.

Regards
Giuseppe
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