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 

ChildRowByIndex returns null

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



Joined: 13 May 2008
Posts: 1

PostPosted: Tue May 13, 2008 1:11 pm    Post subject: ChildRowByIndex returns null Reply with quote

I am trying to use the ChildRowByIndex but sometimes it returns null. The strange thing is that if I enter debug-mode, I can see the child at the specified index (_childItems, _childRows).
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue May 13, 2008 11:08 pm    Post subject: Reply with quote

ChildRowByIndex will return null in only two circumstances:

1. The row has no children (in which case _childItems would be null)

2. The index you pass the method is outside the range:
0 <= i < _childItems.Count

Do mean that if you are debugging you can see _childItems is non-null and the index is within these bounds - but the method still returns null?

Any chance you could email a sample project that illustrates the issue to support@infralution.com?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
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