p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB.NET 2002/2003 Basics (http://p2p.wrox.com/forumdisplay.php?f=76)
-   -   One Row in DataGrid error (http://p2p.wrox.com/showthread.php?t=15386)

petersonginae July 13th, 2004 02:26 PM

One Row in DataGrid error
I'm getting the following error:

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: value

The table that I am pulling from is only returning one record when I get the error. If I add a second item to the table, everything behaves as it should. Is there something quirky with how the DataGrid distinguishes between AlternatingItem and Item when there is only one record. Has anyone seen this before?

Thanks in advance for any suggestions...I've tried everything I can think of!

draganmit July 14th, 2004 02:33 AM

Have you tryed >>ExecuteReader or ExecuteNonQuery<<?
Because the ExecuteScalar returns one row from table.

bmains July 14th, 2004 05:14 PM


Could this be a paging error? Are you somehow on a different page that this is giving you an error?

Can you post any relevant code?


All times are GMT -4. The time now is 01:04 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.