Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Error deleting row Server-Side -- ArgumentOutOfRangeException
posted

I'm trying to delete a row on button click on the CellClick event of WebGrid.

I am using myUltraWebGrid.Rows.Remove(e.Cell.Row);

i think everything should be ok but I am getting this error: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

I've also tried deleting by index.  If I do a rows.Count I get 13 and when trying to delete a row, say row 2, I am getting this same error?

Am i missing something?

I am using V6.3