DataView Problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am krishna,software developer in KISOFT, chennai,india.I developed one
application using visual studio 2005.I am using Dataview object in my
application.it's working properly in offline but the online application
display the following error

System.ArgumentOutOfRangeException: Index was out of range. Must be
non-negative and less than the size of the collection.
Parameter name: index

how to solve the issue?
Anybody pls help me
Regards
T.A.Krishna
 
This means you have a line of code somewhere that is asking for item Y out
of a group of items that only has X items. Start up the project in debug and
set breakpoints. Step through until you hit the error. It will be a line
similar to this:

object o = groupofObjects(y);

Find out how big the array is and you will see the issue.

A common reason is start with object #1 as 1 instead of 0 (ordinal versus
cardinal basis). When you try to grab object #10 as 10, it blows up.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
 
Back
Top