Specified argument was out of the range of valid values. Parameter name: index
Let me know if I'm following the right path here. OK, I'm updating a datagrid, so I need to obtain the values in the edit text boxes so I can then construct my UPDATE sql to update the record. Easy right. Well, using the following code I get the above mentioned error message:
Dim FID As String = CType(e.Item.Cells(1).Controls(0), TextBox).Text
>Dim Fnd As String = CType(e.Item.Cells(2).Controls(0), TextBox).Text
The .Cells(1). seems to work well but the program yaks on anything over 1.
Windows 2003, IIS 6, VB, Ole connection to Access database. Do you need to see anymore code?
I know that e.Item.Cells.Count = 7
when I add the value of i.Item.Cells(1).Controls(0) to a label I know it is the first bound column
the second bound column is sortable but read only - Is this the problem?