开发者

asp.net selecting a checkbox from the grid view

开发者 https://www.devze.com 2022-12-23 01:21 出处:网络
i am trying to get checkbox value ,using c# In grid view the datasourc开发者_运维知识库e is from oracle

i am trying to get checkbox value ,using c# In grid view the datasourc开发者_运维知识库e 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消