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

Trying to get value of data grid view selected column

$
0
0

When I select a  row in my data grid view I want to get the value of the first column. I'm setting it equal to a variable usr. I get a 'Cannot complicity convert' error. Here is a portion of the code. If you need more code I can provide that.

usr = dgv.SelectedColumns[0];
showLegend = loadedReports.Where(f.form.SUPERAPPROVED == 1 && usr.REQ_INSP_APPROVAL == 1).Count() > 0


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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