babu
babu

Reputation: 13

asp.net selecting a checkbox from the grid view

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

Upvotes: 0

Views: 504

Answers (1)

Abhishek Rao
Abhishek Rao

Reputation: 93

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 } }

Upvotes: 1

Related Questions