scottie_uk
May 25th, 2003, 08:46 PM
I am pulling values from a datagrid using the:
dtgRecStock.Item(row, col)
I put the above code in a loop to loop to row count. Each loop with pull one rows information of and using a OLEDB dataadapter put the retreived data into an access dataTable.
The problem is that I get the following error:
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in system.windows.forms.dll
Additional information: Specified argument was out of the range of valid values.
This happens where ever I asign the value of the dataGrid cell to a variable. If I take the code for updating the database out and replace it with a msgBox showing the same data I can view all the data without errors.
Anybody know how I can deal with this.
PS: I do have my reasons for not using a databinded datagrid.
thanks for reading.
Scottie.uk
:confused:
dtgRecStock.Item(row, col)
I put the above code in a loop to loop to row count. Each loop with pull one rows information of and using a OLEDB dataadapter put the retreived data into an access dataTable.
The problem is that I get the following error:
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in system.windows.forms.dll
Additional information: Specified argument was out of the range of valid values.
This happens where ever I asign the value of the dataGrid cell to a variable. If I take the code for updating the database out and replace it with a msgBox showing the same data I can view all the data without errors.
Anybody know how I can deal with this.
PS: I do have my reasons for not using a databinded datagrid.
thanks for reading.
Scottie.uk
:confused: