Hi,

I get this error :

Code:
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
Error is on this line:

Code:
string rowID;

rowID = DataGridSpirits.DataKeys[e.Item.ItemIndex].ToString();
I have a datagrid, i have a delete and update buttons. This error occurs on both of these events. SOmething to do with returning the row number. It worked earlier, i didn't change anything???

Any help greatly appreciated.