Input string shows was not in a correct format

Get the exception while removing the row as showing in image 3 how I resolve this

Shows Exception

C# Code

front end