0

i am trying to get checkbox value ,using c# In grid view the datasource is from oracle i have added the checkbox but the value is not coming please help me in checking the value of check box this is for selecting the candidate if the checkbox is selected the particular candidate name is selected and the candidate names are appended in a string

1
  • please add more specific details. how is your databinding? what do you mean by the value is not coming? you can't get the value or you can't see the value? Commented Mar 14, 2010 at 11:18

1 Answer 1

1

loop thru each row of the gridview and check whether the checkbox is selected or not-

foreach(Gridviewrow gridrow in gridview.Rows) {

Checkbox check=(Checkbox)gridrow.findControl("check"); if(check.checked) { //Write logic here } }

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.