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

Get row selected from datagrid in usercontrol inside a form

$
0
0

Hello, 

I have a form with a usercontrol inside. In the user control I have a grid with different values ​​and a checkbox. At the push of a button on the form I would like to read the selected value in the grid and the state of the checkbox. 
I do so

(CheckBox) chk=(CheckBox) userControlSample.FindControl(chkBox1)

but does not work ,visual studio tells me that the FindControl method does not exist , im using visual studio 2013 and framework 2.0

Thanks

 


www.Photoballot.net




Viewing all articles
Browse latest Browse all 2535

Trending Articles



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