Error en DAtagrid

14/07/2004 - 23:35 por CRISTHIAN MASSA MEDINA | Informe spam
Hola amigos tengo este error pls ayudemne
he creado en un grid sin autogenerados y ahora no me carga cuando lo hacia
con autogenerado de columnas no habia problema xq???
Specified argument was out of the range of valid values. Parameter name:
index
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Specified argument
was out of the range of valid values. Parameter name: index

Source Error:

Line 90:
Line 91: ' get the edit text boxes
Line 92: Dim id_proyecto As integer cint(CType(e.Item.cells(2).Controls(0), TextBox).Text)
Line 93: Dim nombre As String = CType(e.Item.Cells(3).Controls(0),
TextBox).Text
Line 94: Dim abreviatura As String CType(e.Item.Cells(4).Controls(0), TextBox).Text
 

Leer las respuestas

#1 Jose Marcenaro
15/07/2004 - 02:34 | Informe spam
Revisa si has agregado manualmente todas las columnas necesarias, porque el
error que se produce es que estas haciendo referencia con e.item.Cells(4) a
celdas o controles inexistentes

Recuerda tambien que la primer columna es Cells(0)

Saludos
Jose Marcenaro

"CRISTHIAN MASSA MEDINA" <news.microsoft.com11> wrote in message
news:#
Hola amigos tengo este error pls ayudemne
he creado en un grid sin autogenerados y ahora no me carga cuando lo hacia
con autogenerado de columnas no habia problema xq???
Specified argument was out of the range of valid values. Parameter name:
index
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Specified argument
was out of the range of valid values. Parameter name: index

Source Error:

Line 90:
Line 91: ' get the edit text boxes
Line 92: Dim id_proyecto As integer > cint(CType(e.Item.cells(2).Controls(0), TextBox).Text)
Line 93: Dim nombre As String = CType(e.Item.Cells(3).Controls(0),
TextBox).Text
Line 94: Dim abreviatura As String > CType(e.Item.Cells(4).Controls(0), TextBox).Text



Preguntas similares