Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15628

[RESOLVED] DataGridView - Header Sort - Object not set to Instance (null)

$
0
0
I have data that I am loading from an SQLite DB.

If I click on the header to sort, I get an Object not set to instance error.

I used the below code to try and catch the null error, but it still keeps generating the error.

What am I doing wrong??
I also would like to sort the datagrid too after clicking the column heading.

Code:

Try
    Dim row As Integer = dgrid1.CurrentRow.Index
Catch
    Exit Sub
Finally
    'continue on
End Try

Thanks in advance

Viewing all articles
Browse latest Browse all 15628

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>