VB.NET Error DataGridView [closed]

0

Error:

  

There is no row at position 0

Does anyone know how to solve or explain what this error is?!

    
asked by anonymous 21.05.2017 / 21:03

1 answer

0

This error means exactly what is written on it:

  

There is no line at zero position

To solve is also simple: Before doing the assignment that is in the error line, validate if the line that is accessing has value.

Use: String.IsNullOrEmpty (myString) .

    
21.05.2017 / 22:12