how to reach checkbox in gridview / Gridview içerisinde checkbox’a erişme


foreach (GridViewRow row in tblList.Rows) {
	CheckBox chk = (CheckBox)row.FindControl("chkCase");
	if (chk != null) 
		if (chk.Checked) 
			isOk = true;


 For Each row As GridViewRow In tblList.Rows
            Dim chk As CheckBox = CType(row.FindControl("chkCase"), CheckBox)
            If chk IsNot Nothing Then
                If chk.Checked Then
                    isOk = True
                End If
            End If

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>