| Article: |
ASP.NET Data Controls Part 1: DataGrids | |
| Subject: | datagrid | |
| Date: | 2006-10-18 00:25:05 | |
| From: | Meenakshipoyyali | |
|
When i try to delete the records its showing this error. What is its meaning? Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index |
||
Showing messages 1 through 3 of 3.
-
datagrid
2007-01-11 21:58:42 ASHA [View]
im sorry it was because u didnot set you datakeyfeild="id" in the datagrid (html page). id is the field name and it should be the same as in the table. -
datagrid
2007-05-22 22:39:15 Datagrid [View]
-
datagrid
2007-01-10 21:21:41 ASHA [View]
hai meenakshi.
i had a similar problem but i got it cleared.
first check the number of columns in the datagrid
start form 0 if u still have the same problem try this
datagrid.EditItemIndex = -1 should be the last statement
hope im right


