Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

datagridview check box column error

$
0
0

I have a checked column in a datatable which I bind to a datagridview.  In this case I don't want the checkbox column in the datagridview to show so I do dgv.columns["checked"].visible = false;

when that is done it gives me an error for the line dgv.currentrow... "object reference not set to an instance of an object." 

when it's visible it doesn't give me the error. Why is that?


Debra has a question


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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