Input string format

You can add trim or used
CInt(row(ColNameOrIndex).toString.Trim)

We recommend not relying on Excel and checking the datatable directly within the immediate panel

Similar we had done analysis tasks for dates

we can analyze int32 issues like

dtDataVar.AsEnumerable().Where(Function (x) Not int32.TryParse(x(ColNameOrIndex)toString.Trim)))
1 Like