Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:847582
More Search Options
RSS Available
Matching Posts
Re: Error adding node - Specified argument was out of the range of valid values. Parameter name: Index was out of range. Must be non-negative and less than the size of the collection.
Found the problem. I was using "item.GetNodeIndex" to get the lastIndex, and its returning a String with a float value - whereas the Index in Nodes collections takes an integer. So something like 0.1 will always be 0, and was screwing everything up. I'm now keeping tracking of the node Index with an actual Integer, and voila it works - I guess this is a bug ? Here's working code: Dim item As TreeNode = New TreeNode item.Text = dr("office_name") item.NodeData = dr("office_id"
Posted to
Internet Explorer Web Controls
(Forum)
by
drewdog
on 1/7/2009
Error adding node - Specified argument was out of the range of valid values. Parameter name: Index was out of range. Must be non-negative and less than the size of the collection.
I have a recordset that I loop thru adding nodes to my treeview. Well at around record # 123 out of 500 or so, I get this error adding child node : "Specified argument was out of the range of valid values. Parameter name: Index was out of range. Must be non-negative and less than the size of the collection." The node I'm adding to exists, and I can't see anything wrong w/ the data - and it always gets hung up on the same record. *And the same code has been used 122 times already
Posted to
Internet Explorer Web Controls
(Forum)
by
drewdog
on 1/6/2009
Page 1 of 1 (2 items)
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online